uwsgi-docs icon indicating copy to clipboard operation
uwsgi-docs copied to clipboard

How to create an HTTP POST body - uwsgi protocol

Open LiteWait opened this issue 5 years ago • 0 comments

Using a package https://github.com/andreif/uwsgi-tools/blob/master/uwsgi_tools/curl.py which works great for Unix sockets and GET requests. Problem is POST requests seem to arrive without a body. uwsgi protocol docs don't describe this very well. It appears the code in that package just appends the body (as bytes) to the header part of the request.

Is this correct, what am I missing?

LiteWait avatar Jun 09 '20 01:06 LiteWait