This module provides a plugin for tcp_connect/3 to realise TCP
connections through an HTTP proxy that supports the HTTP 1.1 CONNECT
method.
- socket:try_proxy(+Proxy, +Address, -Socket, -StreamPair)[multifile]
- Connection is via an HTTP proxy for socket: Use HTTP CONNECT.
Note that most proxies will only support this for connecting on
port 443
- Arguments:
-
Proxy | - is of the form proxy(Host, Port) |
- Errors
- -
proxy_error(Message)
if the proxy connection is
not successful.