You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Upayavira <uv...@upaya.co.uk> on 2004/01/20 22:55:42 UTC

Re: Cocoon CLI & Request params

Stephanie Zohner wrote:

>Hi, 
>
>
>I'm just trying to get a better understanding of the cocoon command line
>interface. The configuration is quite tricky but with the help of the mailing
>list I could run a simple example, at least.
>
>However, my problem now is: How can I configure request parameters for one
>of the URLS in the cli.xconf?
>Can I hand request params over to a defined uri when I call the cocoon cli?
>
>Thanks for your help,
>
>Stephanie
>  
>
The CLI can handle request parameters, but at present doesn't (I 
believe) do it very elegantly. You just put the URL you want to request 
in including the request parameters, e.g <uri 
src="/page.html?x=1&y=2"/>. It 'mangles' the URL into a filename, such 
as page.html_x_1_y_2. The mangling isn't very sophisticated, and could 
do with being much better, e.g. page.x_1_y_2.html. It wouldn't be too 
hard to do as the mangling code is quite well contained. Fancy having a 
go at producing a patch to fix it? I'll happily give you pointers.

Regards, Upayavira



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org