Page MenuHomeDevCentral
Paste P183

Fetch a remote URL content in TCL
ActivePublic

Authored by dereckson on Apr 1 2016, 18:55.
package require http
#Reads specified URL and returns content
proc geturltext {url} {
set fd [http::geturl $url]
set text [http::data $fd]
http::cleanup $fd
return text
}

Event Timeline

dereckson created this paste.Apr 1 2016, 18:55