[Twisted-Python] HTTP interface to a program using twisted

Phil Mayers p.mayers at imperial.ac.uk
Mon Aug 4 10:08:27 EDT 2008

Gabriel Rossetti wrote:
> Phil Mayers wrote:
>> On Mon, Aug 04, 2008 at 09:48:10AM +0200, Gabriel Rossetti wrote:
>>> Hello everyone,
>>> I have a program using twisted and I'd like it to obtain it's data 
>>> via  the HTTP protocol. The idea is that the clients will connect to a  
>> It's best to ask such questions on the twisted-web list.
> Ok, but I just want to make sure first it's better to use twisted.web 
> rather than implementing my own protocol, since I won't be serving any 
> web pages and to me it seams twisted.web is designed to serve web content.

No. twisted.web is a general HTTP server. You can use it to implement 
XMLRPC, JSON-RPC or various other non-HTML HTTP applications, as well as 
HTML pages.

More information about the Twisted-Python mailing list