Returns or sets the name of the proxy server used to communicate with the Internet. This property is only used when the AccessType property is set to icNamedProxy (3).
Syntax
object.Proxy = proxy
The Proxy property syntax has these parts:
Part | Description |
object | An object expression that evaluates to an object in the Applies To list. |
proxy | The name of the proxy server to be used. |
Data Type
String
Remarks
Changing the value of this property will have no effect until the next Execute or OpenURL method is called.
You can set individual proxies for each protocol. For example, if your network has a proxy devoted to the ftp protocol named "CorpFTP" and it uses port 123, you can set it as:
Inet1.Proxy = "ftp=CorpFTP:123"
You can specify multiple gateways by separating each with a space. For example, if your HTTP proxy is named "CorpHTTP", and uses port 131, set both protocols this way:
Inet1.Proxy = "ftp=CorpFTP:123 HTTP=CorpHTTP:131"
If you do not specify which protocol you are trying to set, the same proxy will be used for all protocols. For example, the proxy named below will be used even the protocol is http:
Inet1.Proxy = "CorpFTP:123"