Kaydet (Commit) 974f70d9 authored tarafından Guido van Rossum's avatar Guido van Rossum

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

üst 95713eb9
...@@ -9,6 +9,7 @@ Example: ...@@ -9,6 +9,7 @@ Example:
>>> from httplib import HTTP >>> from httplib import HTTP
>>> h = HTTP('www.python.org') >>> h = HTTP('www.python.org')
>>> h.putrequest('GET', '/index.html') >>> h.putrequest('GET', '/index.html')
>>> h.putheader('Host', 'www.python.org')
>>> h.putheader('Accept', 'text/html') >>> h.putheader('Accept', 'text/html')
>>> h.putheader('Accept', 'text/plain') >>> h.putheader('Accept', 'text/plain')
>>> h.endheaders() >>> h.endheaders()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment