Anyone here a PHP expert? I am banging my head against the desk here... I have the following code but for some reason it kind of seems like the username and password are not actually being sent. Does anyone here have the ability to receive an http post that I can send to confirm whether you're actually getting an attempted username and passowrd along with an XML document? Here is a code snippet working with: $r = new HTTP_Request($dest_url) or die("$dest_url: $php_errormsg"); $r->setMethod(HTTP_REQUEST_METHOD_POST); $r->addHeader('Content-Type', 'text/xml'); $r->setBasicAuth($username, $password); $r->addRawPostData($packet); $res = $r->sendRequest() or die("sendRequest:". $php_errormsg); I keep getting a 401 (Access Denied) error. No PHP errors. I can send debug output, etc. not posted here. This is a Windows PHP instance, PHP Version 5.4.31 Windows 2008 Server. Of course I am assuming I have the right username and password, but could there be logic error? I am posting to a major B2B portal, but it may be possible that multiple attempts have shut me down. I need to know if my code is correctly posting a username and password before I complain to them to fix their end. Thanks anyone.. Bill