Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

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)

Replies are listed 'Best First'.
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 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.
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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://59719]
Approved by root
[shmem]: karlgoethebier: here abouts people are sitting in big tents, gulp beer and ingest badly scorched chicken and sausages while (not) listening to afwul musik
[shmem]: *awful
[choroba]: panem et circenses
[karlgoethebier]: shmem: Yes. I didn't go to the firefighters party just 500 yards from my home this year...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2017-05-25 12:47 GMT
Find Nodes?
    Voting Booth?