Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 surveying the Monastery: (5)
As of 2014-12-28 18:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (182 votes), past polls