Sergey Lyubka wrote:
> On 31/08/2007, *Joel Sherrill* <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>
>
>         /* Register a callback on wildcard URI */
>         shttpd_register_uri(ctx, "/users/*/", &show_users, NULL);
>
>     Are there any helper routines to parse the URL?
>
>
> Yeah, if the URI has '*' in it, it is a wildcard. There is no helper
> routine to parse URI :-) I thought sscanf is enough for that.
Got it and have an example working.  What is the proper way to
get the "query" string? I saw that it was put into the query
field of the connection structure but I don't see where it gets all
the user callback.  I cast the void * "arg->priv" back to the
connection and could get to the query but that seems wrong.
>
>             open_listening_ports(ctx); 
>
>
> That's right, this call is missing from example.c
> I beleive CVS version is not broken.
Great!

Thanks.

--joel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
shttpd-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shttpd-general

Reply via email to