mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Add call to putheader('Host', 'www.python.org') to the example.
This commit is contained in:
parent
95713eb9d6
commit
974f70d97b
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue