Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: CGI::Application header weirdness (docs)

by tye (Cardinal)
on May 23, 2009 at 06:30 UTC ( #765801=note: print w/ replies, xml ) Need Help??


in reply to CGI::Application header (typo, heh)

The CGI::Application docs show you should use -type for that. It also references the CGI.pm docs that elaborate and show that to get arbitrary headers you would use -Content_type not 'Content-type'.

$self->hea­der_add( -t­ype => 'text/plai­n' );

- tye        


Comment on Re: CGI::Application header weirdness (docs)
Select or Download Code
Re^2: CGI::Application header weirdness (docs)
by cLive ;-) (Parson) on May 23, 2009 at 06:33 UTC
    Hey tye, yep, I worked it out. I think it should throw an exception though for a bad one. Bugs the hell out of me when I'm allowed to make those kind of errors by the module. Ah well, at least I can sleep now :)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2015-07-03 00:14 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 (47 votes), past polls