![](https://secure.gravatar.com/avatar/02a5e50b6aceff49683013aa6ea3686c.jpg?s=120&d=mm&r=g)
Hello, I'm new to Twisted, and I'd like to know if there is any HTTP(S) Client API that would support various authentication methods and strategies. By 'strategy', I mean that, ideally, the client application could define some sort of 'strategies' to tell the client API what to reply when challenged with an HTTP 401 Unauthorized response code. I guess that's feasible using HTTP Basic authentication, but I'd also like to be able to define when to send a client certificate for authentication to an HTTPS server than wants or requires it. Could some of these goals be achieved with Twisted.Web or Twisted.Web2? I'm not sure where to find documentation on the subject. I'd appreciate any pointers or suggestions. Best wishes, Bruno.
![](https://secure.gravatar.com/avatar/7ed9784cbb1ba1ef75454034b3a8e6a1.jpg?s=120&d=mm&r=g)
On Sun, 02 Mar 2008 20:00:16 +0000, Bruno Harbulot <bruno.harbulot@manchester.ac.uk> wrote:
Hello,
I'm new to Twisted, and I'd like to know if there is any HTTP(S) Client API that would support various authentication methods and strategies. By 'strategy', I mean that, ideally, the client application could define some sort of 'strategies' to tell the client API what to reply when challenged with an HTTP 401 Unauthorized response code. I guess that's feasible using HTTP Basic authentication, but I'd also like to be able to define when to send a client certificate for authentication to an HTTPS server than wants or requires it. Could some of these goals be achieved with Twisted.Web or Twisted.Web2? I'm not sure where to find documentation on the subject. I'd appreciate any pointers or suggestions.
Support for authentication in twisted.web.client isn't very strong. This kind of thing would best be done by adding a a more flexible client API. Jean-Paul
participants (2)
-
Bruno Harbulot
-
Jean-Paul Calderone