Page MenuHomeDevCentral
Paste P183

Fetch a remote URL content in TCL
ActivePublic

Authored by dereckson on Apr 1 2016, 18:55.
Referenced Files
F28475: Fetch a remote URL content in TCL
Apr 1 2016, 18:55
Subscribers
None
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
}