Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I tried download script by 'Save as' from link like

http://www.host.com/directory/cgi-bin/scriptname/script.cgi

but get 'Internal Server Error' "The server encountered an internal error or misconfiguration and was unable to complete your request." How to download script?

Replies are listed 'Best First'.
Re: script download
by perrin (Chancellor) on Dec 22, 2004 at 19:49 UTC
    If you figure out a way, let me know. There's some code at etrade.com that I'd like to check out.
Re: script download
by amw1 (Friar) on Dec 22, 2004 at 19:42 UTC
    Unless /directory/cgi-bin/scriptname/script.cgi is not actually a cgi directory you can't. Webservers (afaik) won't serve you the file, it will only serve you the result of running the script.

    In short, you can't. (at least it doesn't appear likely)

      But i can see cgi-bin content and open .txt file inside this directory. Why not cgi?
        Well, to make it explicit: 1) because it would be a giant security hazard to allow anyone to just download copies of running scripts and 2) because you can make a file either executable or downloadable, but you have to choose one or the other.