Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Answer: How to load a cgi script when the webpage loads

by LogicalChaos (Beadle)
on Jan 03, 2002 at 04:46 UTC ( #135872=categorized answer: print w/replies, xml ) Need Help??

Q&A > CGI programming > How to load a cgi script when the webpage loads - Answer contributed by LogicalChaos

If you want the cgi script instead of a page (default.html for instance), redirect from your page to your cgi script: <META HTTP-Equiv="Refresh" CONTENT="3; URL=http://your.place.com/cgi/my.cgi">

Replies are listed 'Best First'.
Re: Answer: How to load a cgi script when the webpage loads
by merlyn (Sage) on Jan 03, 2002 at 04:55 UTC
Re: Answer: How to load a cgi script when the webpage loads
by Anonymous Monk on Jan 03, 2002 at 07:28 UTC
    Better yet, if you have access to the server (or virtual host) configuration, just disguise your cgi's as .html files by using the AddType and AddHandler under apache or the equivilant on other webservers. Or for a more "friendly" alternative, add .cgi, .pl, .exe or whatever to the DefaultIndex (or equiv. on other servers). -c
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2020-04-06 19:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The most amusing oxymoron is:
















    Results (41 votes). Check out past polls.

    Notices?