]> granicus.if.org Git - python/commitdiff
Add call to putheader('Host', 'www.python.org') to the example.
authorGuido van Rossum <guido@python.org>
Fri, 19 May 2000 23:06:45 +0000 (23:06 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 19 May 2000 23:06:45 +0000 (23:06 +0000)
Lib/httplib.py

index 8c8084e98ea009947b04a46f282912f642572265..feb97b3a04d2b2ee2500e9a70260d0d46121c939 100644 (file)
@@ -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()