Setting and Retrieving Proxy Server Configurations

Use the ProxyInfo property to set or retrieve FTP and HTTP proxy server configurations. Do not use this function if you do not connect through a proxy server.

Authentication Parameters

"ftp://proxyusername:proxypassword@proxyhostname:proxyport"

For FTP proxies that require authentication.

"http://proxyusername:proxypassword@proxyhostname:proxyport"

For HTTP proxies that require authentication.

"ftp:// proxyhostname:proxyport"

For FTP proxies that don't require Authentication.

"http:// proxyhostname:proxyport"

For HTTP proxies that don't require Authentication.

 

 

Additional parameters

"proxyusername"

The user name for login to the proxy server

"proxypassword"

The password for login to the proxy server

"proxyhostname"

The proxy server address

"proxyport"

The proxy server connection port

Syntax

String Object.ProxyInfo

Example 1

MySite.ProxyInfo = http://globalscape.com:8000 'use http proxy without authorization

Example 2

MySite.ProxyInfo = ftp://joeuser:maypass@globalscape.com:21 'use ftp proxy with authorization for user "joesuser" & password "mypass"

Example 3

str = MySite.SocksInfo 'retrieve the current value of SocksInfo (empty if none)

MsgBox str 'now display it