diff options
author | Guido van Rossum <guido@python.org> | 2000-05-19 23:06:45 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-05-19 23:06:45 (GMT) |
commit | 974f70d97b2bf0fd1828d5c08bc638e25e27aca5 (patch) | |
tree | 1b51f7a9b2f24561de103f834b089116d35bc3d0 /Lib/httplib.py | |
parent | 95713eb9d6e410f9fe4b671f5d9120ea03f19636 (diff) | |
download | cpython-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.py | 1 |
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() |