This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author orsenthil
Recipients andresriancho, facundobatista, orsenthil
Date 2007-11-09.15:02:10
SpamBayes Score 0.011284596
Marked as misclassified No
Message-id <1194620531.17.0.867245300088.issue1401@psf.upfronthosting.co.za>
In-reply-to
Content
Hello Andres,
I think we are mixing up 2 or 3 things. Here are my comments.

1) urllib2 POST issue.
- Discussion broke on this. No conclusion.

2) GET Request.

>> If we create a GET request (handling 302 as 303) we should
>> remove the content length header!

I fail to find a reference for this statement in the RFC.

Currently urllib2, gets the headers from the original request and passes
the same headers to the redirected url. RFC mentions that we "should not
change the headers". I quoted the section previously.

3) Handling 30* headers the same way.
Yes, urllib2 handles them in the way stating most of the clients
apparently handle it the same way. Most of us are okay with it.
("Practicality beats Purity"). But when we find that something can be
improved, we just to add/extend the same. I am working on urilib
(sandbox/trunk/urilib) which has some extensions like cached redirection
for temporary redirections etc.

And for this issue, we just have to find the supporting evidence for:

>> If we create a GET request (handling 302 as 303) we should
>> remove the content length header!

If we don't find it,then it is not a bug.
History
Date User Action Args
2007-11-09 15:02:11orsenthilsetspambayes_score: 0.0112846 -> 0.011284596
recipients: + orsenthil, facundobatista, andresriancho
2007-11-09 15:02:11orsenthilsetspambayes_score: 0.0112846 -> 0.0112846
messageid: <1194620531.17.0.867245300088.issue1401@psf.upfronthosting.co.za>
2007-11-09 15:02:11orsenthillinkissue1401 messages
2007-11-09 15:02:10orsenthilcreate