Add call to putheader('Host', 'www.python.org') to the example.

This commit is contained in:
Guido van Rossum 2000-05-19 23:06:45 +00:00
parent 95713eb9d6
commit 974f70d97b

View 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()