Added the "Host" header to the "GET" example.
This closes SF bug #457100.
This commit is contained in:
parent
ae45714ed3
commit
481cf2c064
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue