[Twisted-Python] bug or my code? (getPage + Twisted Webserver = Exception)

Glyph glyph at twistedmatrix.com
Tue Jul 17 18:46:49 EDT 2012


On Jul 17, 2012, at 12:50 PM, exarkun at twistedmatrix.com wrote:

> On 04:25 pm, mobilebackup77 at gmail.com wrote:
>> The server I am using uses TLS SNI. Does getPage support this, or has
>> any plans in the near future to support this? Do any other python
>> packages (request/urllib3/...) support TLS SNI yet?
> 
> Sure.  Just pass in an appropriately configured SSL context factory.
> 
> See the pyOpenSSL documentation for details on how to configure SNI.

Also, if you're interested in making some higher-level wrappers for Twisted, it would be great to improve twisted.web.client.Agent to support SNI for HTTPS URLs.  This is the server-side ticket but it has links to a few client-side things: <http://twistedmatrix.com/trac/ticket/4887>.

-g




More information about the Twisted-Python mailing list