diff --git a/http-web-services.html b/http-web-services.html index 3b8b2b5..e2638c2 100755 --- a/http-web-services.html +++ b/http-web-services.html @@ -578,7 +578,7 @@ reply: 'HTTP/1.1 200 OK'
# continued from the previous example ->>> response ① +>>> response ① {'status': '200', 'content-length': '3070', 'content-location': 'http://diveintopython3.org/examples/feed.xml', ② @@ -604,23 +604,22 @@ reply: 'HTTP/1.1 200 OK'
# continued from the previous example ->>> response.previous ① +>>> response.previous ① {'status': '302', 'content-length': '228', - 'content-location': - 'http://diveintopython3.org/examples/feed-302.xml', - 'expires': 'Thu, 16 Jul 2009 20:15:58 GMT', + 'content-location': 'http://diveintopython3.org/examples/feed-302.xml', + 'expires': 'Thu, 04 Jun 2009 02:21:41 GMT', 'server': 'Apache', 'connection': 'close', 'location': 'http://diveintopython3.org/examples/feed.xml', 'cache-control': 'max-age=86400', - 'date': 'Wed, 15 Jul 2009 20:15:58 GMT', + 'date': 'Wed, 03 Jun 2009 02:21:41 GMT', 'content-type': 'text/html; charset=iso-8859-1'} ->>> type(response) ② +>>> type(response) ② <class 'httplib2.Response'> >>> type(response.previous) <class 'httplib2.Response'> ->>> response.previous.previous ② +>>> response.previous.previous ② >>>
httplib2 followed to get to the current response object.