cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <>
Subject Re: Forward POST request data in a sitemap redirect?
Date Tue, 17 Sep 2002 14:45:27 GMT
gv wrote:

>I've been able to easily forward GET request data via
>sitemap redirect by using {requestQuery}, but I can't
>figure out how to redirect and forward POST data. The
>following is what I've tried, to no avail:
>    (HTML form sends POST request to 'testfrom',
>    <!-- FROM -->
>    <map:match pattern="testfrom">
>      <map:act type="request">
>        <map:parameter name="parameters"
>        <map:redirect-to session="true" uri="testto"/>

This send respond to the browser with status 302 and *no* parameters. 
Browser then will request http://..../testto with *no* parameters 
because *none* was given.

Pls refer to for more information.

PS You could decorate testto with request parameters you desire, but be 
aware that POST data could be bigger than GET (== browser performing 
GET) can handle.


>      </map:act>
>    </map:match>
>    <!-- TO -->
>    <map:match pattern="testto">
>      <map:generate type="request"/>
>      <map:serialize type="xml"/>
>    </map:match>
>Is it possible to redirect via sitemap and forward
>POST data? 
>Thanks in advance,

Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message