For information about Globalscape, visit www.globalscape.com. |
Use the UseProxy property to retrieve or set the value for the type of SOCKS or proxy server that is being (or should be) used. Since OFF is the default, you don't need UseProxy for regular connections which do not pass through proxy or SOCKS servers.
Syntax
String Object.UseProxy
Parameters
"OFF" |
Direct connection without any socks and proxy |
"SOCKS" |
SOCKS server only - the user must specify the SOCKS parameters by setting the SocksInfo property |
"PROXY" |
Proxy server only - the user must specify the proxy server parameters by setting the ProxyInfo property |
"BOTH" |
Use both SOCKS and proxy - the user should specify the appropriate information for both the proxy and the socks server with ProxyInfo and SocksInfo. |
Example
Object.UseProxy = "SOCKS" 'specify that socks will be used, then configure SocksInfo
Object.SocksInfo = "socks5://globalscape.com:1080"
'Rest of connection code follows...