Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

cgi mysteriously called twice (instead of just once)

by DanchoMitev7
on Feb 20, 2001 at 21:41 UTC ( #59719=perlquestion: print w/ replies, xml ) Need Help??
DanchoMitev7 has asked for the wisdom of the Perl Monks concerning the following question:

my index.cgi is getting called twice eventhough i am sure i'm only calling it once. does anyone have an idea why this may be happening?

Comment on cgi mysteriously called twice (instead of just once)
Re: cgi mysteriously called twice (instead of just once)
by Yohimbe (Pilgrim) on Feb 20, 2001 at 22:33 UTC
    Hmm. sometimes you can effectively re-run index files with some of the more complicated bits of apache/webserver configuration. Also, there are some bizarre ways to cause FastCGI and similar tools to misbehave. Tell us more about your config.
    --
    Jay "Yohimbe" Thorne, alpha geek for UserFriendly
Re: cgi mysteriously called twice (instead of just once)
by sierrathedog04 (Hermit) on Feb 21, 2001 at 00:16 UTC
    If it were me I would look at the server's log files just to be safe. Are there perhaps two http requests for the same script when there should only be one? Your problem could be something as simple as an unintended Server Side Include, or a hidden frame on a page.
Re: cgi mysteriously called twice (instead of just once)
by dws (Chancellor) on Feb 21, 2001 at 00:21 UTC
    Try to reduce your CGI to the smallest possible script that will demonstrate the problem. This exercise will often point you to the problem. If not, you'll have a short script to post here.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://59719]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2014-12-22 01:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (110 votes), past polls