Overview
| Artifact ID: | 6434700b5c102b6ddf51e190631dcd909b13561e |
|---|---|
| Ticket: | 3102850fffffffffffffffffffffffffffffffff
HTTP does not follow redirects |
| User & Date: | kjnash on 2012-10-30 10:27:22 |
Changes
- icomment:
I suggest that following redirects is not a suitable feature for the http::geturl which implements a single HTTP request. The redirect problem is not simple because RFC 2616 insists we MUST have user confirmation in certain cases: a POST when the response code is 301, 302, or 307. This means that http::geturl must either refuse these redirects, or provide hooks for user interaction. I suggest that Tcllib is a better place for redirection code than the http package itself. I have a wrapper library for package http that provides the necessary code to follow redirects, and handle authorization (401), including hooks for user interaction. I intend to offer this code to Tcllib when it is finished (I am still fixing bugs right now).
- login: "kjnash"
- mimetype: "text/plain"
- username: "kjnash"