Changeset 2980bc6 in tol
- Timestamp:
- Oct 20, 2009, 4:08:50 PM (17 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 40de24b
- Parents:
- 3edd248
- File:
-
- 1 edited
-
tol/stdlib/general/grammars/_text.tol (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tol/stdlib/general/grammars/_text.tol
r3edd248 r2980bc6 1165 1165 WriteLn("Downloading from \""+url+"\" ..."); 1166 1166 Text tcl_helper = " 1167 package require http 1168 1169 proc ::get_url_contens { {url} } { 1170 1171 set data [http::data [http::geturl $url]] 1172 set data 1167 package require uri 1168 1169 proc ::get_url_contens { url } { 1170 1171 array set uri_info [ uri::split $url ] 1172 if { $uri_info(scheme) eq \"http\" } { 1173 set url_content [ uri::geturl $url ] 1174 set ${url_content}(body) 1175 } elseif { $uri_info(scheme) eq \"ftp\" } { 1176 uri::geturl $url 1177 } 1173 1178 }"; 1174 1179
Note: See TracChangeset
for help on using the changeset viewer.
