home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / httpget.zip / readme.htg < prev   
Text File  |  1998-02-18  |  2KB  |  41 lines

  1. I wrote this because I needed to automatically fetch a HTML file via HTTP, 
  2. and couldn't find any utilities that offered to do that.
  3.  
  4. HTTP is actually fairly simple when all you're doing is getting a file, and 
  5. so this utility is also fairly simple.
  6.  
  7. The usage is:
  8.  
  9. httpget.cmd <URL name ;[local name] | @file>
  10.  
  11. Where the URL name is something like http://www.somewhere.com/index.html, 
  12. and [local name] is the local name to use in storing it.
  13.  
  14. The @file option (used instead of a URL) should be the name of a plain text 
  15. file with one or more URL's on separate lines.  Local storage names can 
  16. optionally be placed at the end of the URL, separated from it by a 
  17. semicolon, such as:
  18.  
  19. http://www.somewhere.com/somedir/somefile.zip ; thisfile.zip
  20.  
  21. In order to use this, you must have the REXX socket DLL (RXSOCK.DLL), which 
  22. comes with Warp 4, and is available for Warp 3 all over the place.  Also 
  23. required is Object REXX, because I've got the Object REXX bug, and won't do 
  24. SAA REXX for even the simplest things (those built-in classes are just too 
  25. damn attractive).  If you don't specify a short filename compatible with 
  26. FAT, any long-named URL's will be saved to a random 8 character name, with 
  27. the same extension.  If the extension is not FAT compatible, then the 
  28. extension .HTF is used instead.  No files will be overwritten in this 
  29. method, and the long filename (whether as on the remote site or the desired 
  30. one indicated after the semicolon) is stored as the .LONGNAME EA, so you 
  31. can see via the WPS which files are which in case you didn't see the 
  32. onscreen report of how the file was being saved.
  33.  
  34. In all cases except the FAT compatibility naming, specified names (whether 
  35. separately or implicitly as the filename part of the URL) will be written 
  36. without regard to existing files.  You will overwrite anything of the same 
  37. name in the working directory.  This is your own responsibility.  If you 
  38. don't like it, feel free to modify the program to suit your desires.
  39.  
  40. Any comments can be directed to thanny@home.com
  41.