Hi,

 

First of all thanks for this software, I just found it some time ago and It
really fit my needs.

 

I think an interesting feature to implement could be adding a new callback
to allow rewriting the contents of a requested file based but no based on
the uri but on the extension of the file. For example what I want to do is
place some .xml files on arbitrary places on my webserver documens folder
and generate html from them

 

a sample document could be like this:

 

<product>

            <name>Apples</name>

            <price>0.5</price>

</product>

 

The callback

 

shttpd_register_extension(ctx , "xml" , &xml_handler , NULL);

 

static void xml_handler (struc shttpd_arg *arg)

{

            //Load the requested xml file or get it as a parameter and
generate the html with the my particular logic

}

 

What do you think?

Marc,

 

-------------------------------------------------------------------------
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