Patches item #1673007, was opened at 2007-03-03 16:01
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1673007&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: Python 2.6
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: KDanilov aka koder (koder_ua)
Assigned to: Nobody/Anonymous (nobody)
Summary: urllib2 requests history + HEAD support
Initial Comment:
1)Add history off all sent and received headers/requests
to addinfourl object. Save redirections history too.
>>> fd = urllib2.urlopen("http://www.python.org/")
>>> print fd.history[0].request_line
GET / HTTP/1.1
>>> print fd.history[0].sended
[('Accept-Encoding', 'identity'), ('Host', 'www.python.org'), ('Connection', 'cl
ose'), ('User-Agent', 'Python-urllib/2.6')]
2)Add support for HEAD (and other) requests:
>>> fd = urllib2.urlopen("http://www.python.org/",
request_cmd = "HEAD")
>>> print len(fd.read())
0
Please send email here:
koder_dot_mail_at_gmail_dot_com
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1673007&group_id=5470
_______________________________________________
Patches mailing list
[email protected]
http://mail.python.org/mailman/listinfo/patches