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.