From 49b763e3f53be4ce5d309709e90fc628642010a1 Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Sun, 31 May 2009 22:12:37 -0700 Subject: [PATCH] more HTTP chapter --- http-web-services.html | 624 +++-------------------------------------- 1 file changed, 37 insertions(+), 587 deletions(-) diff --git a/http-web-services.html b/http-web-services.html index 478df67..7f2c6ee 100644 --- a/http-web-services.html +++ b/http-web-services.html @@ -253,599 +253,49 @@ Content-Type: application/xml

But wait, it gets worse! To see just how inefficient this code is, let’s request the same feed a second time.

-FIXME
-
+# continued from the previous example +>>> response2 = urlopen('http://diveintopython3.org/examples/feed.xml') +send: b'GET /examples/feed.xml HTTP/1.1 +Host: diveintopython3.org +Accept-Encoding: identity +User-Agent: Python-urllib/3.0' +Connection: close +reply: 'HTTP/1.1 200 OK' +…further debugging information omitted… - -

Beyond GET

FIXME