From: Fred Drake Date: Sat, 1 Sep 2001 02:35:23 +0000 (+0000) Subject: Added the "Host" header to the "GET" example. X-Git-Tag: v2.2a3~175 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=481cf2c064412336800e8b5eff968e3714aa3f85;p=thirdparty%2FPython%2Fcpython.git Added the "Host" header to the "GET" example. This closes SF bug #457100. --- diff --git a/Doc/lib/libhttplib.tex b/Doc/lib/libhttplib.tex index 4a9733511c4a..ce69d804cc2e 100644 --- a/Doc/lib/libhttplib.tex +++ b/Doc/lib/libhttplib.tex @@ -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