You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Oro smith <or...@sify.com> on 2004/06/28 07:17:47 UTC
Setting header
How can the mime type be specified in the http header when sending a file to the browser??
Just like in php where we can specify something like :
<?php
header("Content-type: text/vnd.wap.wml");
How is this done in cocoon??
-------------------------------------------------
Still single? Click here to find the perfect match.
http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Setting header
Posted by de...@free.fr.
Quoting Oro smith <or...@sify.com>:
> How can the mime type be specified in the http header when sending a file to
> the browser??
>
> Just like in php where we can specify something like :
>
> <?php
> header("Content-type: text/vnd.wap.wml");
>
> How is this done in cocoon??
>
>
>
>
in your serializer sitemap declaration
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Setting header
Posted by de...@free.fr.
Quoting Oro smith <or...@sify.com>:
> How can the mime type be specified in the http header when sending a file to
> the browser??
>
> Just like in php where we can specify something like :
>
> <?php
> header("Content-type: text/vnd.wap.wml");
>
> How is this done in cocoon??
>
>
>
>
in your serializer sitemap declaration :
<map:serializer name="wml" src="..." mime-type="test/vnd.wap.wml"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Setting header
Posted by Stephan Coboos <cr...@gmx.net>.
Oro smith wrote:
>How can the mime type be specified in the http header when sending a file to the browser??
>
>Just like in php where we can specify something like :
>
><?php
>header("Content-type: text/vnd.wap.wml");
>
>How is this done in cocoon??
>
>
>
>
>
>
>
>
>
>-------------------------------------------------
>Still single? Click here to find the perfect match.
>
>http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
>
Or within your flowscript (is your're using one):
cocoon.response.setHeader("Content-type", "text/vnd.wap.wml")
Regards
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org