commit | 974f70d97b2bf0fd1828d5c08bc638e25e27aca5 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri May 19 23:06:45 2000 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri May 19 23:06:45 2000 +0000 |
tree | 1b51f7a9b2f24561de103f834b089116d35bc3d0 | |
parent | 95713eb9d6e410f9fe4b671f5d9120ea03f19636 [diff] |
Add call to putheader('Host', 'www.python.org') to the example.
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 @@ >>> 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()