Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "hobbs"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. 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]
    
    
  5. foundin changed to: "None"
  6. is_private changed to: "0"
  7. priority changed to: "5 Medium"
  8. resolution changed to: "None"
  9. status changed to: "Deleted"
  10. submitter changed to: "nobody"
  11. subsystem changed to: "29. http Package"
  12. title changed to:
    ::http::geturl could support FTP if using an HTTP proxy
    
  13. type changed to: "RFE"