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

Re: How can I capture the full header of a cgi script?

by Cubes (Pilgrim)
on Nov 29, 2007 at 13:27 UTC ( [id://653827]=note: print w/replies, xml ) Need Help??


in reply to How can I capture the full header of a cgi script?

There are a lot of ways to do this, but a couple of simple ones are:

- Use the Web Developer add-on / toolbar in Firefox. Under "Information" is a menu option that will display the http response headers.

- Put a print "Content-Type: text/plain\n\n" at the top of your script, before you send any headers. This will display the headers in your web browser (which now thinks they're part of the page content). Of course, you'll need to remove the print statement once you're done debugging.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-09-15 14:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (21 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.