Added the "Host" header to the "GET" example.
authorFred Drake <fdrake@acm.org>
Sat, 1 Sep 2001 02:35:23 +0000 (02:35 +0000)
committerFred Drake <fdrake@acm.org>
Sat, 1 Sep 2001 02:35:23 +0000 (02:35 +0000)
This closes SF bug #457100.

Doc/lib/libhttplib.tex

index 4a9733511c4aa92e4bbb81f02cd1bf8f58e83d3a..ce69d804cc2e4f387230432baa2eb6230a6d9782 100644 (file)
@@ -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