Hi,
shttpd is working great on RTEMS serving static pages.
We do not have processes so we can't do any CGI that
requires forking.
The old webserver we were using had a mechanism
to register a C callback for certain paths (URL - hostname).
It kept a list of pathnames and registered handlers and
when something matched, it called the handler.
Is this what io_embedded is for? And is this registration
code from 1.38's example.c registering an example which
could (but doesn't appear to) decode the * and do something
different based on the user name?
/* Register a callback on wildcard URI */
shttpd_register_uri(ctx, "/users/*/", &show_users, NULL);
Are there any helper routines to parse the URL?
If I am understanding all this correctly, then I am left with
the issue that I can compile example but when I run it, nothing
is listening on localhost 8080 or 8081. I am on Fedora 7 and
the firewall is off. I checked standalone.c and realized that
at least this call is missing from the example.c before
the polling starts:
open_listening_ports(ctx);
I made some other minor changes to the 1.38 example Makefile.
It needs -ldl and I add "-o example". I didn't like a.out as the
example program example name. :)
Steven.. is the addpages callback where you intended users
to add their own web pages hooks on RTEMS?
Sorry for this being so long. I have a couple of projects which
need dynamic pages. One is to add a web based way to check
on the various RTEMS objects. :)
--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