Send Request to Server [Python Code]

An example of sending a request to the server. In this Send Request to Server example, the Accept: */* request header tells the server that the client accepts any media type. The Content-Type: text/html response header informs the client that the server returned HTML. The Python code was automatically generated for the Send Request Server example.
Send Request to Server [Python Code] Send
GET /echo HTTP/1.1
Host: reqbin.com
Accept: */*