July 17, 2012
10:46 p.m.
On Jul 17, 2012, at 12:50 PM, exarkun@twistedmatrix.com wrote:
On 04:25 pm, mobilebackup77@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