Commit 481cf2c0 authored by Fred Drake's avatar Fred Drake

Added the "Host" header to the "GET" example.

This closes SF bug #457100.
parent ae45714e
......@@ -121,6 +121,7 @@ Here is an example session that uses the \samp{GET} method:
>>> h.putrequest('GET', '/index.html')
>>> h.putheader('Accept', 'text/html')
>>> h.putheader('Accept', 'text/plain')
>>> h.putheader('Host', 'www.cwi.nl')
>>> h.endheaders()
>>> errcode, errmsg, headers = h.getreply()
>>> print errcode # Should be 200
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment