access POST data ?
c0ze opened this issue · comments
Hello,
thanks for the great work !
I'ld like to issue a question/request, is it possible to access POST data with parsereq ?
I need to access a request like this :
curl -v -X POST -H "content-type:application/json" "http://myhost.com/api/oauth2/token" -d '{"my data":"contents of my data"}'
I thought I could access this with parsereq.post_body() maybe, but I couldn't.
Also would you consider supporting json as content-type ?
Hi,
parsereq supporting content-type is "application/x-www-form-urlencoded" or "multipart/form-data" now.
JSON support is good idea.
But, JSON is capable of nested array.
post_body() have no problem.
But, post_header() have a problem.
I need a little time to think.
Support unknown content-type.