I am using web.py
to run a server. I need to get a request from a remote server, however, the request sends me a data with Chunked Transfer Coding.
I can use web.ctx.env['wsgi.input'].read(1000)
to get the data. But this is not what I need since I don't know the length of the data (because it is chunked). But if I use web.ctx.env['wsgi.input'].read()
the server would crash.
Can anybody tell me how to get the chunked data in a request?