Command Line http request
Earl Young
eayoung at bna.com
Wed Jan 29 07:36:34 EST 1997
some of you may not be familiar with Expect.
"Expect" will do this kind of thing easily. Expect is freeware written by Don
Libes (there is an O'Reilly book on the software) and it runs on Unix systems.
Expect causes remote machines to think they are talking with a keyboard - that's
a too-brief summary - and allows you to automate previously labor-intensive
things. Expect will not navigate MS Windows software, but will work inside
X-Windows. It is marvelous software.
Earl Young
______________________________ Reply Separator _________________________________
Subject: RE: Command Line http request
Author: bzhang at lama105.kcc.hawaii.edu at INTERNET
Date: 1/29/97 5:05 AM
William Oldfield writes:
> Anyone...
>
> I need to set up an automatic request for a series of text files
> in a single directory that are delivered by a Web server. There
> is no "mget" in http like there is in ftp.
>
> I would like to set up a small script that would automatically
> request each document in the directory through http. My
> question is how do I communicate to a Web server from a
> UNIX command line.
>
Try WGet at <URL:http://sunsite.auc.dk/ftp/pub/infosystems/wget/>
Or, you can write a expect script (Expect is an TCL extension). You
can basically telnet to the http port, and issue the get command.
Good luck!
--
---------------------------------------------------------------------
Bin Zhang <bzhang at Hawaii.Edu> 4303 Diamond Head Road
Automation/Reference Librarian Honolulu, HI 96816
Kapiolani Community College Phone: (808) 734-9254
University of Hawaii Fax: (808) 734-9453
----------------------------------------------------------------------
> Thanks.
>
> William Oldfield (Networked Information Research Associate)
> University of Waterloo Library
> (519) 888-4567 Ext 2461 wroldfie at library.uwaterloo.ca
> http://www.lib.uwaterloo.ca/~wroldfie/home.html
>
More information about the Web4lib
mailing list