Skip to content
Tcl Source Code History Of Ticket 2197293
Login

History Of Ticket 2197293

Artifacts Associated With Ticket 2197293

  1. Ticket change [3e9bb593c2] (rid 121301) by nobody on 2008-10-26 10:46:23:

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