|
Another Filtering Proxy
|
|
May. 26, 2015, 06:22 AM
(This post was last modified: May. 26, 2015 12:46 PM by cattleyavns.)
Post: #15
|
|||
|
|||
|
RE: Another Filtering Proxy
Hi!
Can you release a new version for urllib3 1.10.4 ? I got a bug when trying to load a page using proxy: My Python version: 3.4.2 My urllib3 version: 1.10.4 Log: http://pastebin.com/g2mK1CW4 Site: http://www.ghacks.net Problem: maybe this: https://github.com/shazow/urllib3/pull/544, expect https://github.com/ml31415/urllib3/commi...2b19edad4e Config: new line: Code: [PROXY http://127.0.0.1:7777]The problem can be solved by replacing headers with self.headers ( that mean url's HTTPDict to BaseHTTPServer/http.server headers ? ) Code: r = self.pool.urlopen(self.command, self.url, body=self.postdata, headers=headers, retries=1, redirect=False, preload_content=False, decode_content=False)Code: r = self.pool.urlopen(self.command, self.url, body=self.postdata, headers=self.headers, retries=1, redirect=False, preload_content=False, decode_content=False)I can load that page through proxy, but I cannot load all page that don't use any proxy server, even worse. Code: [13:15:24] [P] "GET http://www.ghacks.net/" 200 11765But all other page: Code: File "D:\Downloads\Compressed\AFProxy_py 0.4\ProxyTool.py", line 128, in handlI cannot fix this problem, I already tried to fix this problem but it is not perfect, still partial fix which is not really good in long terms use, I skip using proxy through config.ini but use this way, I added these line right above r =..: Code: if "ghacks" in self.host:Work, but not perfect, you see for proxy I use http.server headers feature, but for other I use HTTPDict from urllib3, that will cause more trouble in the future, so I hope you can fix it because I'm not the author of the software so I cannot really understand the codebase, or can you point me what I should do is okay, thank! And with AFProxy as proxy server I cannot load this page: https://github.com/shazow/urllib3/pull/544 Error: Code: This page is taking way too long to load.Without AFProxy, I can. |
|||
|
« Next Oldest | Next Newest »
|

Search
Member List
Calendar
Help





![[-]](images/ONi/collapse.gif)