Commit 930f22f0 authored by Fred Drake's avatar Fred Drake

Fix typo in httplib example.

This fixes SF bug #495221.
parent 38a94280
...@@ -214,7 +214,7 @@ Here is an example session that shows how to \samp{POST} requests: ...@@ -214,7 +214,7 @@ Here is an example session that shows how to \samp{POST} requests:
... "Accept": "text/plain"} ... "Accept": "text/plain"}
>>> conn = httplib.HTTPConnection("musi-cal.mojam.com:80") >>> conn = httplib.HTTPConnection("musi-cal.mojam.com:80")
>>> conn.request("POST", "/cgi-bin/query", params, headers) >>> conn.request("POST", "/cgi-bin/query", params, headers)
>>> response = h.getresponse() >>> response = conn.getresponse()
>>> print response.status, response.reason >>> print response.status, response.reason
200 OK 200 OK
>>> data = response.read() >>> data = response.read()
......
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