Microsoft KB Archive/309436

= PRB: Users Are Prompted for Credentials When Using XMLHTTP or ServerXMLHTTP to Access Remote Pages =

Article ID: 309436

Article Last Modified on 11/27/2001

-

APPLIES TO


 * Microsoft XML Parser 2.0
 * Microsoft XML Parser 2.5
 * Microsoft XML Parser 2.6
 * Microsoft XML Core Services 4.0
 * Microsoft XML Parser 3.0 Service Pack 1
 * Microsoft XML Parser 3.0 Service Pack 2
 * Microsoft XML Core Services 4.0

-



This article was previously published under Q309436



SYMPTOMS
Users of applications that use the XMLHTTP or ServerXMLHTTP objects to access a remote Web page or XML document may be prompted for credentials when the objects open a connection to a remote server, even though the remote server does not require authentication.



CAUSE
The ServerXMLHTTP request passes through a proxy server that requires client authentication.



MORE INFORMATION
The ServerXMLHTTP component in versions of the MSXML parser earlier than 4.0 does not support proxy authentication. No versions of XMLHTTP, including version 4.0, support proxy authentication.

The ServerXMLHTTP object in the MSXML 4.0 parser includes two new members to support proxy configuration and authentication: setProxy and setProxyCredentials.

The setProxyCredentials Method
The setProxyCredentials method is used to specify proxy authentication credentials. The setProxyCredentials method accepts the following two arguments:
 * username: The name of the user that is to be authenticated.
 * password: The password for the user that is to be authenticated.

The setProxy Method
The setProxy method is used to set the proxy configuration that is used by ServerXMLHTTP. The setProxy method accepts the following three parameters:
 * proxySetting: The proxy configuration whose value is to be set. The values are shown in the table below.
 * varProxyServer: The name of a proxy server or a list of proxy server names.
 * varBypassList: The list of locally known host names or IP addresses for which you want to permit bypass of the proxy server.

The following settings are available for use with the setProxy method:

Keywords: kbprb KB309436

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.