Changeset df6c30c in tol
- Timestamp:
- May 7, 2012, 6:47:19 AM (14 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- b03a8cb
- Parents:
- cb42322
- File:
-
- 1 edited
-
tol/stdlib/system/_geturl.tol (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/stdlib/system/_geturl.tol
rcb42322 rdf6c30c 76 76 77 77 ////////////////////////////////////////////////////////////////////////////// 78 Text GetUrlContents.tcom.iexplore(Text url) 79 ////////////////////////////////////////////////////////////////////////////// 80 { 81 Set eval = Tcl_Eval(" 82 package require tcom 83 set iexplore [::tcom::ref createobject InternetExplorer.Application] 84 $iexplore Navigate2 {"<<url<<"} 85 while {[$iexplore Busy]} { 86 after 100 87 } 88 set html [[[$iexplore Document] body] innerHTML] 89 $iexplore Quit 90 set html 91 "); 92 If(eval[2], eval[1], { 93 Error(eval[1]); "" 94 }) 95 }; 96 97 ////////////////////////////////////////////////////////////////////////////// 78 98 Text GetUrlContents(Text url) 79 99 ////////////////////////////////////////////////////////////////////////////// … … 84 104 method=="tcl:curl", GetUrlContents.tcl.curl(url), 85 105 method=="sys:wget", GetUrlContents.sys.wget(url), 106 method=="tcom:iexplore", GetUrlContents.tcom.iexplore(url), 86 107 1==1, { 87 108 WriteLn("[GetUrlContents] Invalid option value at "
Note: See TracChangeset
for help on using the changeset viewer.
