Webserver

#1

Has anyone tried to make a webserver? My need is simple, I would like to remotely set settings via a web page.

0 Likes

#2

There’s one provided with Open AT Lua, including active server pages, an AJAX plugin etc.:

http://www.wavecom.com/lua/wiki/tiki-index.php?page=SampleHttpServer
http://www.wavecom.com/lua/wiki/tiki-index.php?page=SampleAjax

0 Likes

#3

Of course, lots of people have made webservers!

A webserver in Open-AT would be conceptually no different from a webserver on any other embedded platform - and there are plenty of examples of those all over the web!
You could start with codesearch.google.com

Maybe you could just work straight from the HTTP specs:
w3.org/Protocols/rfc2616/rfc2616.html

Or try the Lua one.

You mean a web page that’s embedded on the Wavecom device?

Don’t forget that this will require a Public IP address…

0 Likes

#4

Unless you’re using a VPN solution…

0 Likes

#5

You might like to read this:

0 Likes

#6

THnx for all the reponses, I will work through it. The idea is exactly the same as for adsl modems… I want to log in and be able to set settings on the unit and retrieve the status of the unit.

0 Likes

#7

Again, remember that this will require a Public IP address…

0 Likes

#8

Barracuda’s embedded web server happens to also be Lua-based. The rationales behind are quite obvious: in an embedded device you mainly want to do CGI, very little static pages serving, and writing CGI in C is challenging, to say the least. So you can either:

  • strip down Python/TCL to the point of near-unusability, to make them embeddable;
  • or go with a port of Scheme, if you think that your users won’t run away scared by Lisp’s syntax;
  • or use Lua, which is simultaneously powerful (its semantics is very close to Scheme’s), user-friendly and embeddable.
0 Likes