Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > xmlhttp Help with password protected page

Reply
Thread Tools

xmlhttp Help with password protected page

 
 
Mangler
Guest
Posts: n/a
 
      05-05-2010
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"

 
Reply With Quote
 
 
 
 
Bob Barrows
Guest
Posts: n/a
 
      05-05-2010
Could you describe your symptoms without using generic meaningless
phrases like "not working"?
Did you look at these pages? You might find your own answer:
http://www.aspfaq.com/search.asp?q=s...mlhttp&x=6&y=6

Mangler wrote:
> 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"


--
HTH,
Bob Barrows


 
Reply With Quote
 
 
 
 
Mangler
Guest
Posts: n/a
 
      05-05-2010
On May 5, 9:22*am, "Bob Barrows" <reb01...@NOyahoo.SPAMcom> wrote:
> Could you describe your symptoms without using generic meaningless
> phrases like "not working"?
> Did you *look at these pages? You might find your own answer:http://www..aspfaq.com/search.asp?q=...mlhttp&x=6&y=6
>
>
>
>
>
> Mangler wrote:
> > 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"

>
> --
> HTH,
> Bob Barrows- Hide quoted text -
>
> - Show quoted text -


Sorry, If I put the script on the page that the data is being posted
to for password protection ( checking username session ), the error
that gets returned is access denied.
 
Reply With Quote
 
Dan
Guest
Posts: n/a
 
      05-06-2010

"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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing a users password without knowing the old password nor the answer to the password question AAaron123 ASP .Net 2 01-16-2009 02:08 PM
anyway to make password protected page in blogger? ebox770@yahoo.com Java 1 10-03-2007 08:55 PM
Msxml*.XMLHTTP vs. Microsoft.XMLHTTP yawnmoth Javascript 11 11-09-2006 08:44 PM
Extracting data from a password protected Web Page Paul.Porcelli@aggreko.co.uk Perl Misc 1 04-27-2005 11:45 AM
Difference between "Protected WithEvents myClassName" And "Protected myClassName" ? Andreas Klemt ASP .Net 2 07-05-2003 12:51 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57