codegooglecom / libproxy

Automatically exported from code.google.com/p/libproxy
GNU Lesser General Public License v2.1
0 stars 0 forks source link

libproxy should specify the proxy type #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
libproxy should specify the type of proxy it is using ie: SOCKS(4|5), HTTP,
etc.

Please provide any additional information below.
http://article.gmane.org/gmane.comp.gnome.gaim.devel/13533

Original issue reported on code.google.com by jeffschroed on 8 Jan 2008 at 7:21

GoogleCodeExporter commented 9 years ago
Currently it is outside the scope of libproxy to actually make the connection 
to a
proxy.  libproxy reads various configuration sources and algorithmically 
determines
which proxies to use.  This information is returned by the
px_proxy_factory_get_proxies() function.  Each of the proxies returned is 
returned as
a URI with the scheme portion of the URI representing the type of proxy 
specified. 
Thus, and http proxy would look like "http://proxy.company.com:8080" while a 
socks5
proxy would look like this "socks5://proxy.company.com:8080".

We may at some point add a px_proxy_factory_open_socket(char *url) function 
which
handles all the proxy connection code.  However, that is probably post-1.0.

Original comment by npmccallum@gmail.com on 8 Jan 2008 at 11:02