Solved

CGI to password protect file donwload in

Posted on 1997-09-02
3
161 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 100 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

Tutorials alone can't teach real engineering

So we built better training tools.

-Hands-on Labs
-Instructor Mentoring
-Scenario-Based Tests
-Dedicated Cloud Servers

All at your fingertips. What are you waiting for?

Question has a verified solution.

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

Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

623 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