# getFromWeb # This Tcl&Tk procedure performs a HTTP # GET from the indicated web server and # stores the file in the specified file. proc getFromWeb { url file } { # LOAD HTTP PACKAGE package require http # IDENTIFY OUR WEB CLIENT ::http::config -useragent "ultra thin Tcl&Tk web agent" # OPEN OUTPUT FILE set outFile [open $file w] # CREATE CONNECTION TO URL, DOWNLOAD, # AND STORE TO FILE CHANNEL set token [::http::geturl $url -channel $outFile] close $outFile # RETURN TOKEN return $token }
Writing Intelligent Web Agents
Browser Creator Predicts Its Demise. Back in the mid-1990s I attended a panel discussion where Marc Andreessen, the cofounder and then chief technology officer of Netscape, was asked for his predictions of where the World Wide Web was headed. He predicted, to a surprised crowd, that the days of the browser, as the primary means of viewing the Internet, were numbered.Related Reading
More Insights
INFO-LINK
To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy. | |