You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by gv <jg...@yahoo.com> on 2002/09/17 16:21:31 UTC
Forward POST request data in a sitemap redirect?
Hello,
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',
below)
<!-- FROM -->
<map:match pattern="testfrom">
<map:act type="request">
<map:parameter name="parameters"
value="true"/>
<map:redirect-to session="true" uri="testto"/>
</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,
John
__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Forward POST request data in a sitemap redirect?
Posted by Vadim Gritsenko <va...@verizon.net>.
Barbara Post wrote:
>So Vadim, is it possible to use redirect-to with POST method ?
>
Redirect to "cocoon://" URI would work with POST. For any other
redirects see also reply from purist Ken ;-P
PS: I use redirects... "" to "welcome" ;-)
Vadim
> If so, please
>provide a code snippet. I guess not, you replied once on this... I am
>interested too, since I use GET for now but the url bugs me ;-)
>
>Thanks a lot,
>
>Babs
>--
>website : www.babsfrance.fr.st
>ICQ #: 135868405
>----- Original Message -----
>From: "Vadim Gritsenko" <va...@verizon.net>
>To: <co...@xml.apache.org>
>Sent: Tuesday, September 17, 2002 4:45 PM
>Subject: Re: Forward POST request data in a sitemap redirect?
>
>
>
>
>>gv wrote:
>>
>>
>>
>>>Hello,
>>>
>>>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',
>>>below)
>>>
>>> <!-- FROM -->
>>> <map:match pattern="testfrom">
>>> <map:act type="request">
>>> <map:parameter name="parameters"
>>>value="true"/>
>>> <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 http://www.ietf.org/rfc/rfc2616.txt 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.
>>
>>Vadim
>>
>>
>>
>>
>>
>>> </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,
>>>John
>>>
>>>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Forward POST request data in a sitemap redirect?
Posted by Barbara Post <ba...@ifrance.com>.
So Vadim, is it possible to use redirect-to with POST method ? If so, please
provide a code snippet. I guess not, you replied once on this... I am
interested too, since I use GET for now but the url bugs me ;-)
Thanks a lot,
Babs
--
website : www.babsfrance.fr.st
ICQ #: 135868405
----- Original Message -----
From: "Vadim Gritsenko" <va...@verizon.net>
To: <co...@xml.apache.org>
Sent: Tuesday, September 17, 2002 4:45 PM
Subject: Re: Forward POST request data in a sitemap redirect?
> gv wrote:
>
> >Hello,
> >
> >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',
> >below)
> >
> > <!-- FROM -->
> > <map:match pattern="testfrom">
> > <map:act type="request">
> > <map:parameter name="parameters"
> >value="true"/>
> > <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 http://www.ietf.org/rfc/rfc2616.txt 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.
>
> Vadim
>
>
>
> > </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,
> >John
> >
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
>
________________________________________________________________
Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies !
Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
+ 1 mois de jeu en réseau offert !
Clique ici : http://www.ifrance.com/_reloc/mail.etudiant
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Forward POST request data in a sitemap redirect?
Posted by Vadim Gritsenko <va...@verizon.net>.
gv wrote:
>Hello,
>
>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',
>below)
>
> <!-- FROM -->
> <map:match pattern="testfrom">
> <map:act type="request">
> <map:parameter name="parameters"
>value="true"/>
> <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 http://www.ietf.org/rfc/rfc2616.txt 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.
Vadim
> </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,
>John
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>