Solved

CGI to password protect file donwload in

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Python - ImportError: No module named 'urllib2' 2 156
Powershell variable with -SearchBase cmdlet 2 86
Register AutoHotkey 12 59
Python variable _ manually assigned 9 66
This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

863 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now