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

Re: NPH script stopped working correctly

by andal (Hermit)
on May 15, 2015 at 11:14 UTC ( #1126766=note: print w/replies, xml ) Need Help??

in reply to NPH script stopped working correctly

Well, this question is not so much about Perl, but rather about HTTP. It could be that something was changed in your HTTP server, so that it stopped interpreting your script as it was doing before. So, you may want to contact support for your HTTP server.

On a side-note, normally nph scripts should output something like "HTTP/1.0 200 OK\n" as first line. Without this line, my server produces output as object for download instead of display. But I don't know about your server.

  • Comment on Re: NPH script stopped working correctly

Replies are listed 'Best First'.
Re^2: NPH script stopped working correctly
by ultranerds (Hermit) on May 15, 2015 at 12:57 UTC

    Thanks for the reply. That got me onto the right tracks :)

    For some reason (whatever changed), meant that I should now be using:

    	print $IN->header( { -nph => 1 } );

    Adding this into the script (at the top), and it works just as it should now. Thank God! It was driving me nuts!

    Thanks everyone for your time!


Re^2: NPH script stopped working correctly
by ultranerds (Hermit) on May 15, 2015 at 11:48 UTC


    Thanks for the reply. Yeah, we have no changed anything in the script - it just suddenly stopped working. The support tech said:

    I do not see any recent changes on the server as per your ticket history.
    Let me escalate this ticket to one of our senior technician to review your requirement and suggest any possibilities. all a bit weird!

    So, if your script has not changed, but is behaving differently then something else has changed. My money is on the web server config.

    Yeah - thats what I was thinking - but its a managed host, and the only one who makes changes to it are myself, and the server support team. From what they are saying, nothing should have changed around that

    i hope for you the server is not an IIS one: i had painfull days with nph pages some years ago..
    Anyway if you post your software version some monk maybe can help you.

    haha no way - IIS are horrendious to use! Its a UNIX server, with cPanel and WHMS

    The Perl version comes up as:

    This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi

    I can't seem to figure out how to get the httpd version to output! (tried httpd --version and -v, but neither work)



Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2022-12-07 20:44 GMT
Find Nodes?
    Voting Booth?

    No recent polls found