2007/10/10, Rowan Kerr <[EMAIL PROTECTED]>: > > On 9-Oct-07, at 4:46 PM, Alvaro Lopez Ortega wrote: > > Alberto Ruiz wrote, On 09/10/2007 21:25: > >> 2007/10/7, Dave Anderson <[EMAIL PROTECTED] > >>> > >>> Here is a rough attempt to simply get config entries displayed out > >>> onto the web-based admin page as form fields based on a JSON > >>> version of a ConfigNode based tree. > >> > >> Excellent! Patched commited to trunk. > >> Any ideas on how to send the changes back to the server? > > > > What about something like.. > > > > ------- > > POST /vserver/default/extension/jpg/directory_root HTTP/1.1 > > Content-Lenght: 6 > > > > /tmp > > ------- > > > > The only problem would be how to encode the directory paths and the > > regular expressions because of the slashes in the UR > > Post data is mime-type application/x-www-form-urlencoded. So slashes > aren't a problem. Or am I missing something with what you guys are > trying to do.
The problem is that on the first example, we use the request URI to identify wich object do we want to modify, sending a post value to http://localhost:8080/vserver/default/extension/jpeg/directory_root There are config paths that contains slashes, for example: !vserver!default!directory!/admin!... the problem here is that we need to modify the URI because slashes are used to split the URI: http://localhost:8080/vserver/default/directory//admin/... I've solved this already using the dollar sign: http://localhost:8080/vserver/default/directory/$admin/... However, the second approach that alo demonstrates has an advantage, you can send several configuration values using just one request. So I think that we should go for the second approach. (Saw the call for help on Alberto's blog through Planet Gnome) :) Glad to know it had some impact :) -- Un saludo, Alberto Ruiz
_______________________________________________ Cherokee mailing list [email protected] http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee
