summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-09-01 02:35:23 (GMT)
committerFred Drake <fdrake@acm.org>2001-09-01 02:35:23 (GMT)
commit481cf2c064412336800e8b5eff968e3714aa3f85 (patch)
treea24aef739533e0951a5a5ff44a970235b7ce5ae5
parentae45714ed311aed22eb80336b67055483c28267f (diff)
downloadcpython-481cf2c064412336800e8b5eff968e3714aa3f85.zip
cpython-481cf2c064412336800e8b5eff968e3714aa3f85.tar.gz
cpython-481cf2c064412336800e8b5eff968e3714aa3f85.tar.bz2
Added the "Host" header to the "GET" example.
This closes SF bug #457100.
-rw-r--r--Doc/lib/libhttplib.tex1
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/lib/libhttplib.tex b/Doc/lib/libhttplib.tex
index 4a97335..ce69d80 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