Link to home
Start Free TrialLog in
Avatar of gorcutt
gorcutt

asked on

CGI to password protect file donwload in

Hi,
I work with the MS IIS Web Server and I'm trying to do a script (in VB5) to send a byte stream to be downloaded on the client browser.
Actually, after the user authentication,  this script reads a file in a not shared folder (for security reasons) then it sends the contents to the client.
I’m sending the mime header  "content-type: application/octet-stream" so I can send any kind of data to be downloaded. The problem is: how to name the file that will be downloaded? The browser seems to name the file with the name of the script.  I wish to instruct the browser to name the file with the original name.

Thanks

ASKER CERTIFIED SOLUTION
Avatar of faster
faster

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gorcutt
gorcutt

ASKER

Sorry for asking such a stupid question. It's obvious.
Thanks.


don't forget rating! :-)