?
Solved

CGI to password protect file donwload in

Posted on 1997-09-02
3
Medium Priority
?
162 Views
Last Modified: 2013-12-25
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

0
Comment
Question by:gorcutt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 7

Accepted Solution

by:
faster earned 200 total points
ID: 1830059
If your url of the script is such : http://host/path/1.cgi, then use this instead: http://host/path/1.cgi/filename
0
 

Author Comment

by:gorcutt
ID: 1830060
Sorry for asking such a stupid question. It's obvious.
Thanks.


0
 
LVL 5

Expert Comment

by:Christian_Wenz
ID: 1830061
don't forget rating! :-)
0

Featured Post

Create CentOS 7 Newton Packstack Running Keystone

A bug was filed against RDO for the installation of Keystone v3. This guide is designed to walk you through the configuration for using Keystone v3 with Packstack. You will accomplish this using various repos and the Answers file.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question