Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: CGI cookies

by Bilbo (Pilgrim)
on Jan 16, 2003 at 10:08 UTC ( [id://227373]=note: print w/replies, xml ) Need Help??


in reply to CGI cookies

The header method in the CGI module returns the content-type header. If no argument is supplied then the content type defaults to text/html, so

print $query->header()

would do exactly the same as your

print "Content-type:text/html\n\n";

If you include other arguments (such as -cookie => $cookie) then these are included in the return header as well.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-19 22:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found