From: Guido van Rossum Date: Fri, 19 May 2000 23:06:45 +0000 (+0000) Subject: Add call to putheader('Host', 'www.python.org') to the example. X-Git-Tag: v2.0b1~1715 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=974f70d97b2bf0fd1828d5c08bc638e25e27aca5;p=python Add call to putheader('Host', 'www.python.org') to the example. --- diff --git a/Lib/httplib.py b/Lib/httplib.py index 8c8084e98e..feb97b3a04 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()