Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Set HTTP Status code

by flexvault (Prior)
on Nov 16, 2011 at 10:18 UTC ( #938348=note: print w/ replies, xml ) Need Help??


in reply to Set HTTP Status code

You don't mention which web server, but if you're using a RFC compliant server, certain status codes are only valid with specific headers. I used to be able to return any status code I wanted, now I have to have the correct HTML headers in order to return the appropriate status code.

Just a thought!

Good Luck

"Well done is better than well said." - Benjamin Franklin


Comment on Re: Set HTTP Status code
Re^2: Set HTTP Status code
by molybtek (Novice) on Nov 17, 2011 at 01:19 UTC

    We are using Apache 2.2 web server

    I am able to execute the program - it is just that if I execute $self->header_props(-status => 404);, then the server doesn't output the results of the program, instead, it outputs the error message as posted.

    So I'm guessing it may have something to do with mod_perl - since I don't have that set up on my local environment, and it works.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2015-07-05 21:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (68 votes), past polls