Hi,

I wrote the original SSI code for shttpd, I haven't looked at it since 
Sergey made his changes to it.  That said, my original code passed in 
all of the text in the SSI "comment" following the command to the 
command handler as a parameter.  It was up to the command handler to 
then process that text as parameters.  I would think Sergey would do the 
same thing.  If so, then the answer to your question is Yes, just 
process the string to extract the parameters in whatever format you desire.

Steven

Hein Gustavsen wrote:
> Hi
>
> I am embedding shttpd into my own application running on a NIOS softcore
> processor on a custom board. I am using a web client to configure the
> hardware.
>
> It works great, but is it possible to use SSI call function with one or
> more parameters?
>
> There are a lot of configuration parameters I want to read and
> registring a callback function for each of them is not acceptable. In
> addition I want to be able to read from specific memory locations to get
> hardware status information.
>
> Examples:
> <!--#call get_config ip_address -->
> <!--#call get_hw_reg 0x123 -->
>
> The HTML code is quite complex, so using SSI is preferrable. Another
> option would be to generate the HTML code from a url handler, but SSI
> would be much easier to implement.
>
> Regards,
>
> Hein Gustavsen
>
> -------------------------------------------------------------------------
> 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
>
>
>   


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