Discuss this help topic in SecureBlackbox Forum

Use SOCKS and web tunneling (HTTPS proxy) in socket class

The components, which include internal socket (ElSimpleSSLClient, TElSimpleSSHClient, TElSimpleSFTPClient, TElSimpleFTPSClient, TElHTTPSClient, TElSimpleSMTPClient etc.) contain a common set of properties, which specify the way the client socket connects to the server. These properties are related to SOCKS and WebTunneling (HTTPS Proxy) support.

SOCKS proxies use SOCKS protocol, described in RFC 1928 and RFC 1929.

WebTunneling (HTTPS Proxy) is a feature provided by some HTTP proxy servers. This feature is described in RFC 2817 as a CONNECT command. Using this command the server opens a transparent communication to remote host. The side-effect of this feature is that any data can be tunneled via HTTPS proxy server.

To enable SOCKS support, set the UseSocks property of the corresponding component to true. To enable WebTunneling support, set the UseWebTunnelin property of the corresponding component to true. Be sure to enable only SOCKS or web tunneling, but not both.

SocksServer and SocksPort properties specify the address and port of the SOCKS server. SocksVersion property specifies the expected SOCKS server version. Note, that versions 4 and 5 are not compatible with each other.

If you need to authenticate on SOCKS server, set SocksAuthentication property. Provide user name in SocksUserCode property and password in SocksPassword property.

WebTunnelAddress and WebTunnelPort properties specify the address and port of the HTTPS proxy server.

If you need to authenticate on HTTPS proxy server, set WebTunnelAuthentication property. Provide user name in WebTunnelUserId property and password in WebTunnelPassword property.

Discuss this help topic in SecureBlackbox Forum