Click to See Complete Forum and Search --> : MSXML2.ServerXMLHTTP.4.0 - Error : The login request was denied


sitedeveloper
01-27-2011, 06:49 AM
Hi,

I am using the following code snippet to post to an external site :

Set oHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP.4.0")
oHTTP.setProxy 2,"10.128.159.8:80"
oHTTP.Open "POST", sURL, false
oHTTP.setProxyCredentials "username","password"
oHTTP.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
oHTTP.Send strTestData

But when I run the above code, the error I am getting is :

"msxml4.dll error '80072eef'

The login request was denied"

sURL is an https URL and strTestdata is a text data with length about 900.

I have ensured that the username and password is valid and this username is in the active directory of the server.

Any idea why I am getting the above error?