diff options
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libhttplib.tex | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/lib/libhttplib.tex b/Doc/lib/libhttplib.tex index 4a97335..ce69d80 100644 --- 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 |