Message10559
Logged In: YES
user_id=261020
I've attached a patch -- was simpler than I thought.
I think this is in compliance with RFC 2616. It's also
simple for clients to inherit from HTTPRedirectHandler and
override redirect_request if, for example, they know they
want all 302 POSTs to be redirected as a GET, which removes
the need for mixing redirection code with normal client code
even when the server doesn't follow the RFC (if the server
expects a 302 POST to be redirected as a GET, for example).
Note that I had to add a method, named 'method', to the
Request class, for maintainability (it's possible that
urllib2 may be able to do methods other than GET and POST in
future).
Possibly redirect_request should take fewer parameters.
John
|
|
Date |
User |
Action |
Args |
2007-08-23 14:00:59 | admin | link | issue549151 messages |
2007-08-23 14:00:59 | admin | create | |
|