Function Reference


HttpSetProxy

Sets the internet proxy to use for http access.

HttpSetProxy ( mode = 0 [, "proxy:port" [, "username" [, "password"]]] )

Parameters

mode The proxy mode to use:
    $PROXY_IE (0) = (default) Use current Internet Explorer settings for proxy.
    $PROXY_NONE (1) = Use no proxy (direct access)
    $PROXY_SPECIFIED (2) = Use the proxy specified

Constants are deined in "AutoItConstants.au3".
proxy:port [optional] The address and port of the proxy to use. See remarks below.
username [optional] If required, the username for the proxy
password [optional] If required, the password for the proxy

Return Value

None.

Remarks

Internet Explorer 3 or greater must be installed for this function to work.

Only CERN proxy servers are supported.

Proxy servers are usually made up of a web address and port number. Most ISPs use the port number of 8080. If your proxy was "www.proxy.com" and port was "8080" then you would use this to set the proxy:
HttpSetProxy(2, "www.proxy.com:8080")

Most proxy servers do not require a username and password.

When using mode 0 you may specify a username and password and these will be used with the Internet Explorer configured proxy.

Related

FtpSetProxy, InetGet, InetGetSize, InetRead

Example

; Use no proxy
HttpSetProxy(1)

; Use IE defaults for proxy
HttpSetProxy(0)

; Use the proxy "www-cache.myisp.net" on port 8080
HttpSetProxy(2, "www-cache.myisp.net:8080")