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

后端 未结 5 402
猫巷女王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:49

    Apache 2.2 mod_cgi works fine for me, Apache transparently unchunks the request as it is passed to the CGI application.

    WSGI currently disallows chunked requests, and mod_wsgi does indeed block them with a 411 response. It's on the drawing board for WSGI 2.0. But congratulations on finding something that does chunk requests, I've never seen one before!

提交回复
热议问题