?
=?ISO-8859-1?Q?=D8ystein_Johansen?=
Hi,
(This question may be stupid, but I just can't find the answer...)
How can I make the browser downlaod a cgi script from /cgi-bin/.
Obviously I can't make a link to it with <a=href="/cgi-bin/script.cgi>,
since tha script will be executed then.
I see how Lutz in PP2E prints the script on the screen, but I want the
user to get the "save file" message box?
Same thing. What about a binary file? Printing a binary file with
getfile.cgi from PP2E is just silly. The surfer must be promped to save.
So, what I want is a script like getfile.cgi, that downloads insted of
prints the file.
(Maybe this is more a HTTP/HTML question than a Python question...)
Clueless,
-Øystein
(This question may be stupid, but I just can't find the answer...)
How can I make the browser downlaod a cgi script from /cgi-bin/.
Obviously I can't make a link to it with <a=href="/cgi-bin/script.cgi>,
since tha script will be executed then.
I see how Lutz in PP2E prints the script on the screen, but I want the
user to get the "save file" message box?
Same thing. What about a binary file? Printing a binary file with
getfile.cgi from PP2E is just silly. The surfer must be promped to save.
So, what I want is a script like getfile.cgi, that downloads insted of
prints the file.
(Maybe this is more a HTTP/HTML question than a Python question...)
Clueless,
-Øystein