Skip to content Skip to sidebar Skip to footer

How To Send A Request Without 'host Header' Using Python?

I have been trying for many days now, so here I am finally asking, may be dumb question for most of the experts. I am using PyUnit for API testing of my application. The applicati

Solution 1:

Use httpbin test server for this. It is written in Python, btw.

Description:

Testing an HTTP Library can become difficult sometimes. PostBin.org is fantastic for testing POST requests, but not much else. This exists to cover all kinds of HTTP scenarios. Additional endpoints are being considered (e.g. /deflate).

All endpoint responses are JSON-encoded.

Author provides even public service based on this server at http://httpbin.org

Post a Comment for "How To Send A Request Without 'host Header' Using Python?"