Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Apache CGi's

by Sifmole (Chaplain)
on May 10, 2006 at 18:20 UTC ( #548534=note: print w/ replies, xml ) Need Help??


in reply to Re: Apache CGi's
in thread Apache CGi's

You are most likley not printing your header first before anything else is being printed.

A header would be like

print "Content-type: text/html\n\n" or print $q->header();
If your code is erroring then what is getting printed might be going to the browser and causing this error -- you can check your error logs to see if this is happening.
Another quick check type of thing is to do a print as the first thing:
print "Content-type: text/plain\n\n"
and then let the rest of the existing code execute; if your code is erroring you will see it show up in plain text in the browser. Also you can see when your expected header is coming out and if anything is being printed before that.


Comment on Re^2: Apache CGi's
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (13)
As of 2014-09-19 19:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (144 votes), past polls