• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

11. Browsers > Non-Browser Web Clients

Non-Browser Web Clients

Given the simplicity of programming basic web functionality, it is entirely practical to write your own HTTP clients for specific uses. Currently, the most popular non-browser web clients are robots that index the Web for search engines and link checkers that find broken links, but there are an infinite number of possible client programs and devices. See Web Client Programming with Perl, by Clinton Wong (O’Reilly Media) for examples of Perl scripts that access the Web.

In fact, here is a one-line shell script I use now and then to grab web pages from within other shell scripts:

% (/usr/bin/echo "GET /index.html HTTP/1.0\r\n\r"; sleep 5) | telnet patrick.net 80

The trick to this script is it sleeps for five seconds, keeping


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint