Thierry BARUSTA wrote:

Hello!

I've posted few questions around this subject but no anwsers... yet.

As the request input module, I'd like to have a response input module,
thanks to which I could access easily reponse data from the sitemap as
{request:contextPath}. I'm out of ideas trying to:
-get http response information
-in case it's a redirect (code) forward it to client with the right
location header



Going back to your original question (i.e. propagating redirects from a proxied server to the client), output modules won't solve the problem: the sitemap expressions are resolved during sitemap execution, which happens *before* pipeline execution, i.e. before the ProxyGenerator sends the request to the proxied server.


The only way to achieve what you want is to have an action perform the http request on the remote server, propagate the redirect (using the redirector object) if one has been sent or store the http response stream as a request attribute for later use of its content by a generator (a simple parser).

Hope this helps,
Sylvain

--
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to