Overview
| Artifact ID: | 3e9bb593c2ff91430c063a9e6dc8b6023c834291 |
|---|---|
| Ticket: | 2197293fffffffffffffffffffffffffffffffff
::http::geturl could support FTP if using an HTTP proxy |
| User & Date: | nobody on 2008-10-26 10:46:23 |
Changes
- assignee changed to: "hobbs"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
The `http' package, actually, could support ftp:// URLs if an HTTP proxy is in use. Consider, e. g., the following hack: $ tclsh8.4 % package require http 2.5.2 % ::http::config -proxyhost localhost % ::http::config -proxyport 1313 % ::http::register ftp -1 ::socket -1 ::socket % set url ftp://ftp.ssec.wisc.edu/pub/eosdb/ancillary/2008_10_26_300/gdas1.PGrbF00.081026.00z ftp://ftp.ssec.wisc.edu/pub/eosdb/ancillary/2008_10_26_300/gdas1.PGrbF00.081026.00z % set token [ ::http::geturl $url -validate 1 ] ::http::1 % set ${token}(meta) ... Content-Length 23975196 Last-Modified {Sun, 26 Oct 2008 07:07:55 GMT} ... Proxy-Connection close % (Note the explicit use of a bogus `-1' port number.) Why not to make ::http::geturl skip most of the checking of the URL if an HTTP proxy is in use? These checks are quite superflous, given that the complete URL have to be passed to the proxy server, and it seems like a good idea to pass it unmodified. Ivan Shmakov, [email protected] - foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Deleted"
- submitter changed to: "nobody"
- subsystem changed to: "29. http Package"
- title changed to:
::http::geturl could support FTP if using an HTTP proxy
- type changed to: "RFE"