Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: CGI::Application header weirdness (docs)

by tye (Sage)
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 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        

Replies are listed 'Best First'.
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?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2016-10-22 19:23 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (297 votes). Check out past polls.