Message52030
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 |
|
Date |
User |
Action |
Args |
2007-08-23 15:56:56 | admin | link | issue1673007 messages |
2007-08-23 15:56:56 | admin | create | |
|