# # The Amaz-ing BookSearch Retriever 1.12 # John M. Grohol # grohol@cmhc.com # # This program is a stripped down version of url_get.pl (info below) # # Freeware. Redistribute. Enjoy. # # 3/16/1999, 3/26/1999 # @(#)url_get.pl 1.21 2/8/96 # url_get.pl --- get a document given a WWW URL # Modified by Jack Lund 7/19/94 to add functionality and deal with HTTP # 1.0 headers # Hacked by Stephane Bortzmeyer to add "ftp" URLs. # 22 Jan 1994 # Jack Lund 9/3/93 # from hget by: # Oscar Nierstrasz 26/8/93 oscar@cui.unige.ch INSTRUCTIONS: ------------ Copy each of the files in the download directory to their appropriate filenames in a directory which can actually run CGI programs (for many, that may be your cgi-bin directory, or it may be some other directory): amz.cgi The main script and the one you call from your Web page's form amazon.cgi The support script amzhead.html The file which allows you to customize the top of the search output amzfoot.html The file which allows you to customize the bottom of the search output Change the variables near the top of the first script, amz.cgi to point to the directory where the scripts reside on your server (local directory), and the title used for the search output. Disable logging if you don't want it. Then go into amazon.cgi and do a search for "amzid." Replace what's there ("mentalhealthnet") with your own Asssociate's ID. Permissions ----------- Make sure permissions are set correctly on the files: chmod 775 amz.cgi amazon.cgi chmod 644 amzhead.html amzfoot.html Logging ------- A log file is enabled by default and resides in your cgi-bin directory as "amazon.log" If you don't want logging, turn it off in amz.cgi. That's all there is to it! Enjoy.