Mangler (2)
Usenet Archive
- Joined
- Apr 14, 2008
- Messages
- 31
- Reaction score
- 0
I am trying to figure out how to post data to a password protected webpage via xmlHTTP. If I remove the password protection from the page the data is being posted to, everything works as it should, however the page needs to have the restriction on it and I am unable to figure out how to get this to work. I tried supplying the username and password parameters of the open method but it is not working. Here is what I have, maybe I am just missing something that someone can help me with :
Dim url,xmlhttp
set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
url = "http://URL"
xmlhttp.open "POST", url, false, "USERNAME", "PASSWORD" xmlhttp.setRequestHeader "Content-Type", "application/x-www-form- urlencoded" xmlhttp.send "sku=111111"
Dim url,xmlhttp
set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
url = "http://URL"
xmlhttp.open "POST", url, false, "USERNAME", "PASSWORD" xmlhttp.setRequestHeader "Content-Type", "application/x-www-form- urlencoded" xmlhttp.send "sku=111111"