[Twisted-Python] Parsing POST data inside render_POST

I couldn't find an example but I thought someone must have one laying around somewhere. The question is, how do I decode the data from an http POST inside of render_POST ? I'm not even sure what variables hold the data, and if there are builtin methods somewhere to decode it and possibly stick it in a dict? Chris

snacktime wrote:
I couldn't find an example but I thought someone must have one laying around somewhere.
The question is, how do I decode the data from an http POST inside of render_POST ? I'm not even sure what variables hold the data, and if there are builtin methods somewhere to decode it and possibly stick it in a dict?
Hey Chris, You should direct web topics to the twisted-web list. I'm guessing if your working with render_POST, you're using vanilla twisted.web - you're most likely after request.args hrm .. just noticed its not mentioned on: http://twistedmatrix.com/documents/current/howto/using-twistedweb try: http://twistedmatrix.com/documents/current/api/twisted.protocols.http.Reques... HTH, Andy.

Hey Chris,
You should direct web topics to the twisted-web list.
Ya I remembered that seconds after I sent the message...
I'm guessing if your working with render_POST, you're using vanilla twisted.web - you're most likely after request.args
hrm .. just noticed its not mentioned on:
http://twistedmatrix.com/documents/current/howto/using-twistedweb
try:
http://twistedmatrix.com/documents/current/api/twisted.protocols.http.Reques...
Thanks, I found that just a minute ago actually.

On Tue, Feb 15, 2005, Andy Gayton wrote:
hrm .. just noticed its not mentioned on:
http://twistedmatrix.com/documents/current/howto/using-twistedweb
http://twistedmatrix.com/bugs/issue892 I know it's sort of a nuisance for very small changes like this, but it is worth filing bugs against them -- I forget otherwise. Patches also appreciated of course. -Mary
participants (3)
-
Andy Gayton
-
Mary Gardiner
-
snacktime