Message52030
| Author |
koder_ua |
| Recipients |
| Date |
2007年03月03日.14:01:08 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
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 |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月23日 15:56:56 | admin | link | issue1673007 messages |
| 2007年08月23日 15:56:56 | admin | create |
|