Message52902
Tracker item python.org/sf/735515 mentions about urllib2 to cache 301 redirections.
Attached patch tries to implement the same.
Comments on Version 1 of patch:
a) Initializes a dictionary to store the redirection.
b) If req already in cache, return the previous Request object.
c) Otherwise handle the same as 302 and store the Request object.
d) Checks for loop errors in 301.
Just noticed, that it I missed max-redirect checks.
Please comment on this patch, with next version I shall add the max redirect check.
|
|
| Date |
User |
Action |
Args |
| 2007-08-23 15:59:14 | admin | link | issue1755841 messages |
| 2007-08-23 15:59:14 | admin | create | |
|