From 974f70d97b2bf0fd1828d5c08bc638e25e27aca5 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 19 May 2000 23:06:45 +0000 Subject: Add call to putheader('Host', 'www.python.org') to the example. --- Lib/httplib.py | 1 + 1 file changed, 1 insertion(+) 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() -- cgit v0.12