gv wrote: > Vadim Gritsenko wrote: > > >>> <!-- 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 > > > > Thank you, Vadim. I was wondering if there is a way to > forward the entire POST request data without > decorating 'testto' with request parameters -- > redirecting the entire request as-is to a different > URL, regardless of what POST data parameters it > contains and how large the POST data might be. The > destination of the redirect would be responsible for > dealing with the POST request. Is there any way to do > this?
I may be OT here, but I just can't refrain from reapeating this: don't use redirects if you can. Usually, where there is a rediect you can quite easily do it in another way. In your case, a simple map:call could do the trick, or only even nesting... <map:match pattern="testfrom"> <map:act type="request"> <map:parameter name="parameters" value="true"/> <map:generate type="request"/> <map:serialize type="xml"/> </map:act> </map:match> If you need a redirect, probably you should have decomposed the steps you are doing in two. -- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) --------------------------------------------------------------------- --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>