ttraj / socksipy-branch

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

HTTP Proxy Authentication #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. setdefaultproxy(PROXY_TYPE_HTTP,"IP",12345,True,"USERNAME","PASSWD

What is the expected output? What do you see instead?
Can you support HTTP Proxy Authentication? I understand the original version is 
not supported, but it would be really nice if your version support it. Right 
now, I got:
  File "socks.py", line 378, in connect
    self.__negotiatehttp(destpair[0], destpair[1])
  File "socks.py", line 344, in __negotiatehttp
    raise HTTPError((statuscode, statusline[2]))
 socks.HTTPError: (407, 'Proxy Authentication Required').

Thanks so much.
What version of the product are you using? On what operating system?
svn read only branch

Please provide any additional information below.

Original issue reported on code.google.com by kingsf...@gmail.com on 12 Oct 2010 at 2:41

GoogleCodeExporter commented 8 years ago
I have added proxy authentication here

http://code.google.com/p/xbmc-iplayerv2/source/browse/trunk/plugin.video.iplayer
/lib/httplib2/socks.py

diffs here:

http://code.google.com/p/xbmc-iplayerv2/source/diff?spec=svn78&r=78&format=side&
path=/trunk/plugin.video.iplayer/lib/httplib2/socks.py&old_path=/trunk/plugin.vi
deo.iplayer/lib/httplib2/socks.py&old=77

but they are against patches also in issue 1 (with the modifications i also 
posted in issue 1)

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

GoogleCodeExporter commented 8 years ago
some fixes in revision 79 also. 

Original comment by exob...@gmail.com on 27 Feb 2011 at 12:31

GoogleCodeExporter commented 8 years ago
I have added support for this to the PySocksipyChain branch, which will be 
merged into this repo "soon".

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