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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
don't forget rating! :-)
ASKER
Thanks.