且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何切换此代理以使用代理身份验证?

更新时间:2023-09-27 14:42:58

前一阵子,在Twisted邮件列表上也出现了类似的问题:

A similar question came up on the Twisted mailing list a while ago:

http://www.mail-archive.com /twisted-python@twistedmatrix.com/msg01080.html

就像我在那儿提到的那样,您可能需要子类化某些twisted.proxy类,以便它们理解Proxy-Authenticate和Proxy-Authorization标头.

As I mentioned there, you probably need to subclass some of the twisted.proxy classes so that they understand the Proxy-Authenticate and Proxy-Authorization headers.