proxy protocol(english by google translate)
中文
==========
大家好,我使用python写了一个基于 socks 5 协议的代理脚本,一切都按照RFC协议来,但是在数据转发时,遇到了一个问题,火狐收到信息会弹出下载的对话框,当我下载下来时,看到的内容是完整的HTTP 回复信息,但是头部多了几个字节的信息(火狐自己加上去的)。 内容如下:7.33.71\x00PHTTP/1.1 200 OK\r\nDate: Sat, 28 Jun 2014 18:07:17 GMT\r\nContent-Type: text/html; charset=utf-8\r\nTransfer-Encoding: chunked\r\nConnection: Keep-Alive\r\nVary: Accept-Encoding\r\nCache-Control: private\r\nCxy_all: baidu+136c381e87115beab279990c1481c1ae\r\nExpires: Sat, 28 Jun 2014 18:07:17 GMT\r\nX-Powered-By: HPHP\r\nServer: BWS/1.1\r\nBDPAGETYPE: 1\r\nBDQID: 0xbca468a00029c9c4\r\nBDUSERID: 0\r\nSet-Cookie: BDSVRTM=8; path=/\r\nSet-Cookie: H_PS_PSSID=6194_6492_5228_1435_5224_6995_7343_6505_7232_6017_7202_6931_6699_7306_7134_7390_6888_6819; path=/; domain=.baidu.com\r\nContent-Encoding: gzip\r\n\r\n3ab6\r\n\x1
对于这个问题,RFC上没有明确说明,难道不是把远程服务器上收到的数据原封不动的返回给浏览器吗?
Python 代码: https://github.com/LuoZijun/python-proxy/blob/master/socks.py
English (By Google translate )
=====================
Hello everyone, I am using python to write a script based on socks 5 proxy agreement, all in accordance with the RFC protocol, but in the data forwarding, encountered a problem, Firefox receive a message will pop up a dialog box to download when I downloaded when you see the contents are complete HTTP reply message, but more than a few bytes of header information (Firefox added to their own). Like This:
7.33.71\x00PHTTP/1.1 200 OK\r\nDate: Sat, 28 Jun 2014 18:07:17 GMT\r\nContent-Type: text/html; charset=utf-8\r\nTransfer-Encoding: chunked\r\nConnection: Keep-Alive\r\nVary: Accept-Encoding\r\nCache-Control: private\r\nCxy_all: baidu+136c381e87115beab279990c1481c1ae\r\nExpires: Sat, 28 Jun 2014 18:07:17 GMT\r\nX-Powered-By: HPHP\r\nServer: BWS/1.1\r\nBDPAGETYPE: 1\r\nBDQID: 0xbca468a00029c9c4\r\nBDUSERID: 0\r\nSet-Cookie: BDSVRTM=8; path=/\r\nSet-Cookie: H_PS_PSSID=6194_6492_5228_1435_5224_6995_7343_6505_7232_6017_7202_6931_6699_7306_7134_7390_6888_6819; path=/; domain=.baidu.com\r\nContent-Encoding: gzip\r\n\r\n3ab6\r\n\x1
Python Code: https://github.com/LuoZijun/python-proxy/blob/master/socks.py
who can tell me whats wrong?
تمام جوابات (3)
Update your Shockwave Flash v14. http://get.adobe.com/shockwave/ The link for Flash Player is: http://get.adobe.com/flashplayer/
更新您的Shockwave FlashV14。 http://get.adobe.com/shockwave/
该链接的Flash Player是:http://get.adobe.com/flashplayer/
Flash Player ? what's matter about Flash Player ? i'm not request flash content.
Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox.
http://forums.mozillazine.org/viewforum.php?f=25
You'll need to register and login to be able to post in that forum.