Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

How can I change the content-type in HTML::Mason?

by Pedro Picasso (Sexton)
on Nov 02, 2001 at 01:40 UTC ( [id://122687]=perlquestion: print w/replies, xml ) Need Help??

Pedro Picasso has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to send a WML page to a WAP device (Handspring Visor). The system that I have to work with uses HTML::Mason which is nice, but I can't seem to get Mason to change content-type. It sends content-type automatically and before I could do so with any thing else. WML needs content-type vnd.wap.wml.

Originally posted as a Categorized Question.

  • Comment on How can I change the content-type in HTML::Mason?

Replies are listed 'Best First'.
Re: How can I change the content-type in HTML::Mason?
by blakem (Monsignor) on Nov 02, 2001 at 02:01 UTC
    I've used this to set the content type for dynamic images served up via mod_perl/mason:
    $r->content_type('image/jpeg');

    -Blake

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2024-04-23 12:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found