Skip to main content  
  Easy400   |       iSeries home
Freeware
 
Introduction
File upload utilities
File download utility
 
Download this tool

 
 
File Download utility

Downloading a file through HTTP is not the same thing as asking HTTP to display it.
Downloading a file is a request to HTTP to send to the remote user a stream file, preceeded by a given Content-type header.
The access to the file is done by a CGI program, not by the HTTP itself. Therefore there is no need for Apache directives related to the file path. However, the current user profile running the download CGI program must have at least *R rights over the stream file to be downloaded.

Program FDNLOAD in library FUPLOAD is a sample download program that can be easily copied and customized to your needs.
Note that program fdnload can download also stream files larger than 16 MB.

1. Using the FDNLOAD program

  1. Invoking the fdnload program
    • If you installed the Original HTTP directives to run FUPLOAD, enter the following in the location line of your browser:
      http://yourTcpAddr/fuploadp/fdnload.pgm
    • If you installed the Apache HTTP directives to run FUPLOAD, enter the following in the location line of your browser:
      http://yourTcpAddr:8027/fuploadp/fdnload.pgm
    The following shows up:
    Figure 1- FDNLOAD initial screen

    Once you have entered the qualified name of the stream file to be downloaded an pressed the go button, the CGI receives control and pumps the stream file out. As soon as HTTP receives the buffer, will send you a box asking whether you want to open or to save such a file.


    Contact