![]() ![]() Well, now we can understand where our data went – because our POST became GET. make a request with Postman, HTTP => HTTPS redirect issued, but GET in logs – WTF?.make a request with curl, HTTP => HTTPS redirect issued, POST in logs – all good.To reproduce it – let’s use the Python script mentioned above.ġ94.***.***.26 - - "GET /skin/api/v1/receipt HTTP/1.1" 404 18 "" "PostmanRuntime/7.19.0"īut I sent an explicitly specified POST request? The first thing we faced with was the fact that after HTTP to HTTPS redirects – our POST requests lose their data. ![]() ![]() Run() Examples: reproduce the Problem A POST‘s data lost after a redirect Httpd = server_class(server_address, handler_class) Just an common config – NGINX, listen on 80, makes redirects to HTTPS: server ".format(self.path).encode('utf-8'))ĭef run(server_class=HTTPServer, handler_class=S, port=8081):
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |