Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Getting CGI script to send a binary file

by dws (Chancellor)
on Feb 08, 2005 at 04:15 UTC ( [id://428908]=note: print w/replies, xml ) Need Help??


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"?

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://428908]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2024-03-28 10:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found