Version 3 of Download file via HTTP

Updated 2003-03-17 15:48:22

package require http

   proc getPage { url } {
       return [ ::http::data [ ::http::geturl $url ] ]
   }

   set file [ getPage $url ]

The above is a basic example. It however doesn't account for proxys, URL redirects, etc. See grabchat for code which tries to handle some additional issues.


Category Internet