SREhttp/2: Uploading Files |
This page demonstrates two SRE_UTIL utilities that will upload files to this server -- either from another web server, or from you own computer |
type=file
FORM attribute (such as NetScape 2.01 and above).
Set up a URL with the GET_URL action,
followed by the
URL of the file you want to get, and the "local name". The request selector
should look like: GET_URL?url=http://a_url&file=relative_file_name
For example:
GET_URL?url=http://www.pc.com/price.lst&file=pcprice.1
PCPRICE.1
(in
the SREHTTP2\UPLOAD
directory).
Create an HTML FORM with a type=file
attribute. For example:
<FORM enctype="multipart/form-data" ACTION="/put_file" METHOD="post"> Send this file <INPUT TYPE="file" name="relative_filename"> <INPUT TYPE="submit" VALUE="send file"> </FORM>
For example,
In contrast,
type=file
FORM attribute will send back garbage (that will be ignored).