I want to send a request with "Transfer-Encoding:chunked" but somehow the header is never set.
Below is my code for testing and the corresponding captured request.
POST /test.php HTTP/1.1
Host: [replaced]
User-Agent: python-requests/2.28.1
Accept-Encoding: gzip, deflate
Accept: /
Connection: close
Content-Type: application/x-www-form-urlencoded
Content-Length: 16
8
search=1
0
If I do not set the "Transfer-Encoding" header it is not used and even if I explicitly set the "Transfer-Encoding" header it is not used. The requests library always seems to put a "Content-Length" instead.
What am I supposed to do?
I want to send a request with "Transfer-Encoding:chunked" but somehow the header is never set. Below is my code for testing and the corresponding captured request.
If I do not set the "Transfer-Encoding" header it is not used and even if I explicitly set the "Transfer-Encoding" header it is not used. The requests library always seems to put a "Content-Length" instead. What am I supposed to do?