commit | 481cf2c064412336800e8b5eff968e3714aa3f85 | [log] [tgz] |
---|---|---|
author | Fred Drake <fdrake@acm.org> | Sat Sep 01 02:35:23 2001 +0000 |
committer | Fred Drake <fdrake@acm.org> | Sat Sep 01 02:35:23 2001 +0000 |
tree | a24aef739533e0951a5a5ff44a970235b7ce5ae5 | |
parent | ae45714ed311aed22eb80336b67055483c28267f [diff] [blame] |
Added the "Host" header to the "GET" example. This closes SF bug #457100.
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 @@ >>> 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