473,395 Members | 1,948 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Basic Authentication

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
5 6335
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
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
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
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
Ray, Patrice...
Really thanks for your help !!!
Vittorio Pavesi
------------------------
http://www.vittorio.tk
Oct 3 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Phil Powell | last post by:
/*-------------------------------------------------------------------------------------------- This function will utilize the ability to use HTTP-based WWW Authentication, checking for the global...
7
by: Michael Foord | last post by:
#!/usr/bin/python -u # 15-09-04 # v1.0.0 # auth_example.py # A simple script manually demonstrating basic authentication. # Copyright Michael Foord # Free to use, modify and relicense. #...
1
by: Oran | last post by:
I am trying to integrate an application into our extranets. The extranet technology has its own authentication system requiring a domain user but uses anonymous authentication (from the...
4
by: Joseph | last post by:
I have an intranet application that I setup using windows authentication through IIS basic authentication. Is there a way to set a timeout, so that after ten minutes the user will be prompted...
4
by: Dave | last post by:
Hi, Is there anyway to mimic forms authentication's loginUrl and RedirectFromLoginPage functionality using Windows authentication? We are developing intranet sites using basic authentication...
4
by: Barry | last post by:
The MS fix for IE broke how users access our site (if they patch their browsers), so I need a solution to get users logged onto our site transparently. Basically we used to log on to the site...
2
by: Chad Beckner | last post by:
Hi everyone, I am developing a site in which the root will be set with Anonymous & Basic permissions. Past that I will have an application (directory) in which I will be developing...
3
by: sefe dery | last post by:
hi ng, i try to create a asp.net 1.0 website on windows server 2003(Servername: ServerX) with iis 6.0. PROBLEM: The user should login with his windows credentials in basic.aspx and...
3
by: Martin | last post by:
How does one set up basic authentication on an HttpListener? I know I need to set the HttpListener.AuthenticationSchemes to AuthenticationSchemes.Basic but then I'm unsure how and against what...
0
by: =?Utf-8?B?S29uc3RhbnRpbg==?= | last post by:
I am currently working on the application that need to simulate basic authentication programmatically using user's credentials that are known. Basically, the need is for a single sign on with a...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.