diff --git a/http-web-services.html b/http-web-services.html index f7a1645..59a2a66 100755 --- a/http-web-services.html +++ b/http-web-services.html @@ -36,8 +36,8 @@ mark{display:inline}

Python 3 comes with two different libraries for interacting with HTTP web services:

So which one should you use? Neither of them. Instead, you should use httplib2, an open source third-party library that implements HTTP more fully than http.client but provides a better abstraction than urllib.request. @@ -213,7 +213,7 @@ Cache-Control: max-age=31536000, public send: b'GET /examples/feed.xml HTTP/1.1 Host: diveintopython3.org Accept-Encoding: identity -User-Agent: Python-urllib/3.0' +User-Agent: Python-urllib/3.1' Connection: close reply: 'HTTP/1.1 200 OK' …further debugging information omitted… @@ -265,7 +265,7 @@ Content-Type: application/xml send: b'GET /examples/feed.xml HTTP/1.1 Host: diveintopython3.org Accept-Encoding: identity -User-Agent: Python-urllib/3.0' +User-Agent: Python-urllib/3.1' Connection: close reply: 'HTTP/1.1 200 OK' …further debugging information omitted…