417,885 Members | 1,187 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 417,885 IT Pros & Developers. It's quick & easy.

Basic Authentication

P: n/a
Hello,
I'm using MSXML2.ServerXMLHTTP to get a web page using an url with basi
c authentication (e.g. http://user:pa******@www.mysite.it).

Microsoft denied basic authentication within Internet Explorer URL (see
KB 834489) so I'm unable to get the page contents.

The client-side workaround is to change some registry settings (see
http://support.microsoft.com/kb/834489), anybody can help me with a
different solution ?

Thanks
Vittorio Pavesi
------------------------
http://www.vittorio.tk
Sep 30 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Pass the username and password in the .Open method.

yourObject.Open "GET", "http://....", False, "[domain\]username", "password"

Ray at work

"Vittorio Pavesi" <n@spam.it> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
Hello,
I'm using MSXML2.ServerXMLHTTP to get a web page using an url with basi c
authentication (e.g. http://user:pa******@www.mysite.it).

Microsoft denied basic authentication within Internet Explorer URL (see KB
834489) so I'm unable to get the page contents.

The client-side workaround is to change some registry settings (see
http://support.microsoft.com/kb/834489), anybody can help me with a
different solution ?

Thanks
Vittorio Pavesi
------------------------
http://www.vittorio.tk

Sep 30 '05 #2

P: n/a
Ray Costanzo [MVP] ha scritto:
Pass the username and password in the .Open method.

yourObject.Open "GET", "http://....", False, "[domain\]username", "password"

Ray at work


Hello Ray,
I tested it but seems that it get only the text, If I've some <img tags,
they are not printed because the images aren't downloaded.
Any suggestion ?

Vittorio
Sep 30 '05 #3

P: n/a
My first guess is that the img tags are just using a relative URL. As soon
as you move the HTML code somewhere else it doesn't work any more. Check the
HTML code to see if this behavior is expected (you can add then a base href
tag to make those relative URL relative to the URL you put there).

--
Patrice

"Vittorio Pavesi" <n@spam.it> a écrit dans le message de
news:Og**************@TK2MSFTNGP10.phx.gbl...
Ray Costanzo [MVP] ha scritto:
Pass the username and password in the .Open method.

yourObject.Open "GET", "http://....", False, "[domain\]username", "password"
Ray at work


Hello Ray,
I tested it but seems that it get only the text, If I've some <img tags,
they are not printed because the images aren't downloaded.
Any suggestion ?

Vittorio

Sep 30 '05 #4

P: n/a
Yes, exactly. All it's going to return is the HTML. It's just text.

Ray at work

"Patrice" <no****@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
My first guess is that the img tags are just using a relative URL. As soon
as you move the HTML code somewhere else it doesn't work any more. Check
the
HTML code to see if this behavior is expected (you can add then a base
href
tag to make those relative URL relative to the URL you put there).

--
Patrice

"Vittorio Pavesi" <n@spam.it> a écrit dans le message de
news:Og**************@TK2MSFTNGP10.phx.gbl...
Ray Costanzo [MVP] ha scritto:
> Pass the username and password in the .Open method.
>
> yourObject.Open "GET", "http://....", False, "[domain\]username", "password" >
> Ray at work


Hello Ray,
I tested it but seems that it get only the text, If I've some <img tags,
they are not printed because the images aren't downloaded.
Any suggestion ?

Vittorio


Sep 30 '05 #5

P: n/a
Ray, Patrice...
Really thanks for your help !!!
Vittorio Pavesi
------------------------
http://www.vittorio.tk
Oct 3 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.