[issue42417] Empty body {} in POST requests leads to 405 Method not allowed error

2020-12-26 Thread Andrei Kulakov
Andrei Kulakov added the comment: I've tried it with flask_client_long_headers.py , but I get the same output as I've gotten before with flask_client.py . Can you try it on a few different systems? -- ___ Python tracker

[issue42417] Empty body {} in POST requests leads to 405 Method not allowed error

2020-12-14 Thread Bhushan Shelke
Bhushan Shelke added the comment: Attaching screenshot of TCP dump captured via wireshark Packet-2 -- Added file: https://bugs.python.org/file49678/packet-2.PNG ___ Python tracker

[issue42417] Empty body {} in POST requests leads to 405 Method not allowed error

2020-12-14 Thread Bhushan Shelke
Bhushan Shelke added the comment: Also attaching screenshot of TCP dump captured via wireshark Packet-1 -- Added file: https://bugs.python.org/file49677/packet-1.PNG ___ Python tracker

[issue42417] Empty body {} in POST requests leads to 405 Method not allowed error

2020-12-13 Thread Bhushan Shelke
Bhushan Shelke added the comment: Hmm... intriguing... I just downloaded the files, an executed again, following is response Server ```127.0.0.1 - - [14/Dec/2020 13:07:34] "{}POST http://localhost:6000/getResponse HTTP/1.1" 405 -``` Client ```py flask_client.py b'\n405 Method

[issue42417] Empty body {} in POST requests leads to 405 Method not allowed error

2020-12-09 Thread Andrei Kulakov
Andrei Kulakov added the comment: I cannot reproduce with 3.9.0, using attached files -- I do not get either 400 or 405; I get "None received" message: ```python3 flask_client.py

[issue42417] Empty body {} in POST requests leads to 405 Method not allowed error

2020-12-09 Thread Bhushan Shelke
Bhushan Shelke added the comment: Any update on this? Did the files I submitted help in reproducing/identifying the issue? -- ___ Python tracker ___

[issue42417] Empty body {} in POST requests leads to 405 Method not allowed error

2020-11-25 Thread Bhushan Shelke
Bhushan Shelke added the comment: I had uploaded one file(simple_flask.py) to be used as server to the ticket when I created the ticket. Since ticket allows only one file upload, I'd pasted relevant code in ticket itself. I've now uploaded the client python file(flask_client.py) to ticket

[issue42417] Empty body {} in POST requests leads to 405 Method not allowed error

2020-11-25 Thread Christian Heimes
Christian Heimes added the comment: I also noticed that you are passing an explicit content length. {'Content-Length' : '0'} is wrong for a POST payload of "{}" with standard transfer encoding. It should be len("{}") == 2. A zero content length only valid for chunked transfer encoding,

[issue42417] Empty body {} in POST requests leads to 405 Method not allowed error

2020-11-25 Thread Christian Heimes
Christian Heimes added the comment: So far we don't even know for sure if there is a bug in Python's http module. It would be helpful if you could provide a reproducer that does not use any 3rd party code like requests. -- nosy: +christian.heimes

[issue42417] Empty body {} in POST requests leads to 405 Method not allowed error

2020-11-25 Thread Bhushan Shelke
Bhushan Shelke added the comment: Any tentative Date for fix to be generally available? -- ___ Python tracker ___ ___

[issue42417] Empty body {} in POST requests leads to 405 Method not allowed error

2020-11-20 Thread Bhushan Shelke
Bhushan Shelke added the comment: I have looked at requests lib code. As far as I could understand following is the flow of packages used in this case - request "uses->" urllib3 "uses->" http -- ___ Python tracker

[issue42417] Empty body {} in POST requests leads to 405 Method not allowed error

2020-11-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: Please check with the requests project as well, I'm not sure how much of the stdlib HTTP client is used by requests. This issue can stay open because the issue is reproducible using the stdlib. -- ___ Python

[issue42417] Empty body {} in POST requests leads to 405 Method not allowed error

2020-11-20 Thread Bhushan Shelke
Bhushan Shelke added the comment: Yes Ronald I am using requests library however I tried HTTPSConnection class from http.client package as well getting same error, may be because cause is in the core http library itself -- ___ Python tracker

[issue42417] Empty body {} in POST requests leads to 405 Method not allowed error

2020-11-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: Are you using the requests library (https://requests.readthedocs.io/en/master/)? -- nosy: +ronaldoussoren ___ Python tracker ___

[issue42417] Empty body {} in POST requests leads to 405 Method not allowed error

2020-11-20 Thread Bhushan Shelke
Change by Bhushan Shelke : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42417] Empty body {} in POST requests leads to 405 Method not allowed error

2020-11-20 Thread Bhushan Shelke
New submission from Bhushan Shelke : I have a Tomcat+Java based server exposing REST APIs. I am writing a client in python to consume those APIs. Everything is fine until I send empty body in POST request. It is a valid use case for us. If I send empty body I get 400 bad request error -