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

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 service using HTTP and will send it data encapsulated in the HTTP. The data will be extracted and sent on to another service to process it, which will in turn send the processed data back to the HTTP service to send back to the client. I think twisted.web and/or twisted.web2 should be used for this, is that correct? I don't quite get the difference in between web/web2, could someone please enlighten me? I have read the documentation but it doesn't say much. Thank you, Gabriel Rossetti

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.
service using HTTP and will send it data encapsulated in the HTTP. The data will be extracted and sent on to another service to process it, which will in turn send the processed data back to the HTTP service to send back to the client. I think twisted.web and/or twisted.web2 should be used for this, is that correct? I don't quite get the difference in between web/web2, could someone please enlighten me? I have read the documentation but it doesn't say much.
Use twisted.web - twisted.web2 will have all its good bits stolen and put into .web, then be (I guess) deprecated: http://twistedmatrix.com/trac/wiki/TwistedWebPlan Can someone with access re-add this prominent link to the twistedmatrix front page?

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.
service using HTTP and will send it data encapsulated in the HTTP. The data will be extracted and sent on to another service to process it, which will in turn send the processed data back to the HTTP service to send back to the client. I think twisted.web and/or twisted.web2 should be used for this, is that correct? I don't quite get the difference in between web/web2, could someone please enlighten me? I have read the documentation but it doesn't say much.
Use twisted.web - twisted.web2 will have all its good bits stolen and put into .web, then be (I guess) deprecated:
http://twistedmatrix.com/trac/wiki/TwistedWebPlan Ok
Can someone with access re-add this prominent link to the twistedmatrix front page?
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

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.

Phil Mayers wrote:
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.
Ok, thank you Phil

On 4 Aug, 12:20 pm, gabriel.rossetti@arimaz.com wrote:
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.
If you do need to do any of your own protocol work, surely it would be easier to write a few patches for twisted.web than to do the whole thing over again :).
participants (3)
-
Gabriel Rossetti
-
glyph@divmod.com
-
Phil Mayers