summaryrefslogtreecommitdiffstats
path: root/Lib/httplib.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-05-19 23:06:45 (GMT)
committerGuido van Rossum <guido@python.org>2000-05-19 23:06:45 (GMT)
commit974f70d97b2bf0fd1828d5c08bc638e25e27aca5 (patch)
tree1b51f7a9b2f24561de103f834b089116d35bc3d0 /Lib/httplib.py
parent95713eb9d6e410f9fe4b671f5d9120ea03f19636 (diff)
downloadcpython-974f70d97b2bf0fd1828d5c08bc638e25e27aca5.zip
cpython-974f70d97b2bf0fd1828d5c08bc638e25e27aca5.tar.gz
cpython-974f70d97b2bf0fd1828d5c08bc638e25e27aca5.tar.bz2
Add call to putheader('Host', 'www.python.org') to the example.
Diffstat (limited to 'Lib/httplib.py')
-rw-r--r--Lib/httplib.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/httplib.py b/Lib/httplib.py
index 8c8084e..feb97b3 100644
--- a/Lib/httplib.py
+++ b/Lib/httplib.py
@@ -9,6 +9,7 @@ Example:
>>> from httplib import HTTP
>>> h = HTTP('www.python.org')
>>> h.putrequest('GET', '/index.html')
+>>> h.putheader('Host', 'www.python.org')
>>> h.putheader('Accept', 'text/html')
>>> h.putheader('Accept', 'text/plain')
>>> h.endheaders()