Tiny Core Base > Raspberry Pi

Lighttpd or light web server alternative

<< < (2/3) > >>

Zendrael:
Lighttpd (or even smaller, Busybox-Httpd) with some CGI can do the trick too!

bmarkus:
Mongoose supports CGI too

gpulido:
Seems that I have to learn cgi :)
If anyone can give me a hint, I want to just show a html form with two boxes: one for the SSID of the wifi and another for the password (I already have the form).

And when the user submits the form, just save both strings to a local text file and reboot the raspi (the cgi part I guess).
Any sugestion?

Thanks!
Gabriel

bmarkus:
For CGI you can use nearly any language. You can find planty of docs with Google. For Python, see:

http://www.python.org/doc/essays/ppt/sd99east/sld040.htm

gpulido:
Again, thank you.
As I wanted to maintain the tiny factor and try not to install unnecessary packages, and given than the python one is a little heavy, I finished using sh as language for the cgi.

If anyone is interested I could write here the content of the two files.
The idea is to serve a page that allows the user to config the wifi without the need of using ssh
Usefull for the picocore project for example and with the raspi connected also by eth. If the raspi is not connected also by the ehternet, I'm going to use the fallback to creation of an AP point on boot to serve the same page.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version