HTTPLOAD.NLM ------------- Program HTTPLOAD downloads specified files from TCPIP hosts by http protocol. Syntax: LOAD HTTPLOAD [DIR=] [POLL=mm:ss] [FROM=email] [/F] where: DIR ... directory, where HTTPLOAD creates log file and places downloaded resource. Default is SYS:HTTPLOAD POLL ... Interval in which HTTPLOAD checks request queue for new requeest. Default is 2 minutes FROM ... Default is empty. If non-empty string is specified, HTTPLOAD sends it as http From: header. /F ... As default, all received headers are stored only in log file and only resource data are stored request output-file. Switch /F force to write all received bytes in resource outfile. How to ask HTTPLOAD to download a file: You must create file and place it into queue directory. It is \QUEUE, defaults to SYS:HTTPLOAD\QUEUE . First line must start with: HL/1.0. Next there must be line starting with URL:, specifying requested resource. As option, Time: line specify when the download can begin and Proxy: line force HTTPLOAD to use proxy. Example of request file is included: DEMO.REQ Program creates log-file \HTTPLOAD.LOG into which all communication events are logged. Log-file is open in shareable mode, so it can be viewed ongoing without need to unload HTTPLOAD. Downloaded files are placed into directory with the same name as request file but .OUT extension. Also only partial files are written. If request is successful, request file is deleted, if it cann't be solved (e.g. bad URL) request file is moved from queue up to . If there are only communication problems, file is suspended for 2 hours and then tried again. ----------------------------------------------------------------- Notes: - HTTPLOAD is free áeta version. See file LICENSE for conditions. - included are NetBasic script for creating requests files over http network (if you are running NW WebServer 3 on HTTPLOAD server) GETURL.BAS: form for input of request data WRITEURL.BAS: creates request file POLL.BAS: lists all .OUT files in HTTPLOAD dir LOG.BAS: writes out last 5kB of log file History: 1.01: corrected non-default port parsing 1.02: corrected URL line parsing (http://number) 1.03: added Accept: */* header 1.04: accept HTTP/1.1 return header 1.05: corrected DIR argument parsing 1.06: Write "poll.." to LogFile not before 10 attempts 1.07: corrected "poll..." writing & threshold lowed to 8 ----------------------------------------------------------------- If you have any problem or any suggestion concerning the further development of the program, please contact Petr Jaklin: Internet: jaklin@3net.cz fax +420 417 26859