anrojaslat / socksipy-branch

Automatically exported from code.google.com/p/socksipy-branch
Other
0 stars 0 forks source link

Patch to support restrictive proxies #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Attached is a patch which adds support for proxies which do not allow tunneling 
for standard HTTP traffic. It adds a "PROXY_TYPE_HTTP_NO_TUNNEL" type and fails 
back to "PROXY_TYPE_HTTP" for SSL requests.

Thanks for carrying on with the SocksiPy torch!

Original issue reported on code.google.com by jon.k...@gmail.com on 11 Aug 2010 at 4:53

Attachments:

GoogleCodeExporter commented 8 years ago
Hi Jon,

Thanks for the diff. I'm in the process of reworking the code to improve Python 
version support in the socks module.

Would you mind contacting me directly to discuss the feature you've 
implemented? My email is Motoma at gmail.

Cheers,
Christopher

Original comment by motoma on 16 Sep 2010 at 8:29

GoogleCodeExporter commented 8 years ago
any news on the code rework ? its been some months now.

I mentioned on a httplib issue that line 63 of the patch should read 
self.__httptunnel = False

also I had to add

hdrs.insert(1, "Host: %s" % host)

after line 44 for it to work properly on mod_proxy on apache.

(it complained client sent HTTP/1.1 request without hostname)

Original comment by exob...@gmail.com on 26 Feb 2011 at 9:55

GoogleCodeExporter commented 8 years ago
note on top of these patches I added http authentication (has had limited 
testing but worked for mod_proxy on apache) which can be found on ticket #2

Original comment by exob...@gmail.com on 26 Feb 2011 at 10:40

GoogleCodeExporter commented 8 years ago
I've added support for this kind of functionality to the PySocksipyChain 
branch, which will be merged into this one "soon".

Original comment by bjarni.r...@gmail.com on 26 Jul 2011 at 6:38