projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae45714
)
Added the "Host" header to the "GET" example.
author
Fred Drake
<fdrake@acm.org>
Sat, 1 Sep 2001 02:35:23 +0000
(
02:35
+0000)
committer
Fred Drake
<fdrake@acm.org>
Sat, 1 Sep 2001 02:35:23 +0000
(
02:35
+0000)
This closes SF bug #457100.
Doc/lib/libhttplib.tex
patch
|
blob
|
history
diff --git
a/Doc/lib/libhttplib.tex
b/Doc/lib/libhttplib.tex
index 4a9733511c4aa92e4bbb81f02cd1bf8f58e83d3a..ce69d804cc2e4f387230432baa2eb6230a6d9782 100644
(file)
--- a/
Doc/lib/libhttplib.tex
+++ b/
Doc/lib/libhttplib.tex
@@
-121,6
+121,7
@@
Here is an example session that uses the \samp{GET} method:
>>> h.putrequest('GET', '/index.html')
>>> h.putheader('Accept', 'text/html')
>>> h.putheader('Accept', 'text/plain')
+>>> h.putheader('Host', 'www.cwi.nl')
>>> h.endheaders()
>>> errcode, errmsg, headers = h.getreply()
>>> print errcode # Should be 200