Sending A Http Request Using Python
I have intercepted an HTTP request using FIDDLER. I would like to send the same request, just this time using python and not my browser. I did some research and found that httplib
Solution 1:
The problem is that you've got a Content-Length
header claiming that you're going to send the server 5142
bytes in the POST
body but you're not sending any body content at all. As a consequence, the server hangs waiting for the body; it will probably fail with a time out in a few minutes.
To fix this, ensure that the Content-Length
header matches the length of the body in bytes.
Post a Comment for "Sending A Http Request Using Python"