cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <vadim.gritse...@verizon.net>
Subject Re: Proxy generator or file generator to retreive web pages?
Date Sun, 04 Jan 2004 16:01:30 GMT
Davide wrote:

> Hi!...
>
> i have a pipeline where i retreive a web page dinamically, and then 
> i'll need to edit it:
>
>
>             <map:match pattern="body">
>                 <map:act type="auth-protect">
>                     <map:parameter name="handler" value="navigation"/>
>                     <map:parameter name="use-request-parameters" 
> value="true"/>
>                     <!-- generator... both wsproxy and normal file 
> generator are possible -->
>                     <map:generate src="{request-param:link}"/> 
> <!--type="proxy" label="xml"-->
>                     ...
>                     ...
>                 </map:act>
>             </map:match>
>
> I observed that i can use both normal file generator and proxy 
> generator, with apparently no difference, both returns to me the 
> requested xhtml page;
> So, I would like to know if there are important differences, and when 
> to use file gen and when proxy gen


If you mean HttpProxyGenerator, the only difference is that proxy can 
support POST, accepts parameters as map:parameters, uses HttpClient 
library, can support redirects. See source code for details.

Vadim



Mime
View raw message