Processing chunked encoded HTTP POST requests in python (or generic CGI under apache)

后端 未结 5 522
猫巷女王i
猫巷女王i 2020-12-10 18:05

I have a j2me client that would post some chunked encoded data to a webserver. I\'d like to process the data in python. The script is being run as a CGI one, but apparently

5条回答
  •  青春惊慌失措
    2020-12-10 18:36

    You can't do what you want with mod_python. You can do it with mod_wsgi if you are using version 3.0. You do however have to step outside of the WSGI 1.0 specification as WSGI effectively prohibits chunked request content.

    Search for WSGIChunkedRequest in http://code.google.com/p/modwsgi/wiki/ChangesInVersion0300 for what is required.

提交回复
热议问题