Author orsenthil
Recipients
Date 2007-07-18.02:32:18
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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.

History
Date User Action Args
2007-08-23 15:59:14adminlinkissue1755841 messages
2007-08-23 15:59:14admincreate