in reply to Getting CGI script to send a binary file

... but I need to have the script deliver the file anonymously.

Could you clarify what you mean by "anonymously"?

  • Comment on Re: Getting CGI script to send a binary file

Replies are listed 'Best First'.
Re^2: Getting CGI script to send a binary file
by jdtoronto (Prior) on Feb 08, 2005 at 04:32 UTC
    I don't want the user to see where the file is actually resident ( so they can't go back and download it again! ).

    jdotornto

      It should be sufficient if the file resides in a directory path that is not open to browsing by the web server (ie. lies outside the webroot path) or by an ftp server. So long as the outside path has permissions set such that the webserver user account can read files in that directory, the cgi script can fetch the file and send it to the client, but the client won't be able to get at the file any other way except through the cgi script.