package require http proc getPage { url } { return [ ::http::data [ ::http::geturl $url ] ] } set file [ getPage $url ]