http://www.perlmonks.org?node_id=122687

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.

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