I using this to get raw POST data in my controller:

--
body = request.body.read(int(request.environ["CONTENT_LENGTH"]))
log.error(body) # print POST data to log
--

for test, I using curl to send POST data
# curl -d "test" http://localhost:5000/rpc/json/

but have no data print in my log

my plons:
mod_python + pylons-0.9.6

any idea?
thanks in advance.

--
best regards,
Alec



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to