When you work with ServerXMLHTTP , you need to use the WinHTTP Proxy Configuration utility (Proxycfg.exe) to access your HTTP servers through a proxy server. Proxycfg.exe updates the registry with your proxy configurations, so you must have local administrative rights on the machine before running the program. Proxycfg.exe settings are machine specific, not user specific. Note that WinHTTP proxy settings are different from Internet Explorer proxy settings. Changing your proxy settings in Internet Explorer will not affect ServerXMLHTTP.
Table 16-2 lists the parameters that Proxycfg.exe supports.
Parameter | Description | Example |
---|---|---|
-d | Specifies that all HTTP and HTTPS servers should be accessed directly, without a proxy. | Proxycfg “d |
-p proxy-server-list optional-bypass-list | Lists the proxy servers to use and an optional host list that should be accessed by bypassing the proxy servers. | The following example accesses all hosts using myproxy or myhttpsproxy, except hosts without a period in their name , local hosts , or any host in the microsoft.com domain. Proxycfg “p "http=myproxy https=myhttsproxy" "<local>;*.microsoft.com" |
-u | Imports the Internet Explorer proxy settings. Autodiscovery and configuration script “based proxy settings are not supported. | Proxycfg “u |