Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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 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        

Replies are listed 'Best First'.
Re^2: CGI::Application header weirdness (docs)
by cLive ;-) (Prior) 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?
[Corion]: Meh. Some Open Source people get bought out by advertising firms to change their projects to include advertising. But nobody has approached me to buy out WWW::Mechanize ::$browser from me, to make the browsers launch an ad page ...
[Corion]: ... instead of about:blank, which the modules currently do at startup.
[Corion]: Maybe I'm too pricey. But I haven't received any offers at all ;-)
[Corion]: The ad hits from CPAN testers alone should bring in a pretty penny IMO. But maybe I misestimate the CPC that ads pay.

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2017-07-24 14:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (354 votes). Check out past polls.