Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12600 Discussions

Embedded webserver w/Scripting

Altera_Forum
Honored Contributor II
993 Views

Hi - I'm looking at implementing a simple webserver with some ultra-simple server-side scripting/macro-expansion. The webserver 'example' that's programmed into the NIOS evaluation board must support some of this to display mac addresses and IP addresses, but there's no source for it in the SDK. 

 

The "webserver" project within the SDK has absolutely no scripting support... 

 

Using something like the 'goahead' webserver may be a bit of overkill, especially given the ucos limitations.... 

 

Any suggestions? 

 

- Roddy
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
289 Views

I'll post the modified http server source tomorrow... look for it in the 'post your ip' section. We just implemented a simple token-parsing method that replaces strings (of a known length, that matches, say, an ip address), with the actual address in use by the system. It isn't very powerful given that limitation... but it does allow the server to parse things on the fly as its sending packets down the wire.

0 Kudos
Altera_Forum
Honored Contributor II
289 Views

 

--- Quote Start ---  

originally posted by jesse@Nov 2 2004, 07:37 PM 

i'll post the modified http server source tomorrow... look for it in the 'post your ip' section.  

 

we just implemented a simple token-parsing method that replaces strings (of a known length, that matches, say, an ip address), with the actual address in use by the system. 

--- Quote End ---  

 

 

Thanks - I'd appreciate that. 

 

I had a feeling that maintaining the "Content-Length" header was going to be the awkward part! 

 

- Roddy
0 Kudos
Reply