[Twisted-web] Proxy Authentication with a Password Protected Site

Jean-Paul Calderone exarkun at divmod.com
Mon Sep 22 09:44:48 EDT 2008

On Mon, 22 Sep 2008 09:38:57 -0400, Robert Hancock <hancock.robert at gmail.com> wrote:
>On Mon, Sep 22, 2008 at 4:57 AM, Phil Mayers <p.mayers at imperial.ac.uk> wrote:
>>> If I run this against a password protected HTTP(S) site from a host
>>> that has direct access to the Internet it works fine.  I now have to
>>> move it behind a proxy that requires authentication.  The Twisted
>>> documentation did not make it clear (to me) how to add proxy
>>> authentication and I cannot find an example on the Internet.
>>> I've tried adding an additional Proxy-Authentication header to the
>>> call, but that doesn't help  Any ideas would be greatly appreciated.
>> "Didn't help" how? What didn't work?
>> What kind of proxy is it?
>Didn't help in that I receive an HTTP 407 Proxy Authentication required.
>It is a proxy that requires Basic HTTP authentication.

Maybe you meant to add the "Proxy-Authenticate" header instead of the
"Proxy-Authentication" header?

Twisted Web provides no particular support for authenticating with proxies,
but it doesn't do anything that would prevent you from handling this in your
code, either.


More information about the Twisted-web mailing list