"Mangler" <> wrote in message
news:111e3ad0-ef32-4e9a-ae1f-...
> 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"
>
Is the page being posted to using Kerberos (Integrated/NTLM) for
authentication? See
http://support.microsoft.com/kb/314404 and
http://support.microsoft.com/kb/291008/EN-US/ for more details. The short
answer is, it looks like ServerXMLHTTP doesn't support NTLM/Kerberos itself
and you would need to configure the local proxy settings for this, or use
Basic Authentication on the server being posted to.
--
Dan