tags:

views:

62

answers:

3

Hi all, I have here a small embedded device with uClinux. There is a Boa web-server, that supports CGI scripts. I need to make basic dynamic pages.

Requirements

  • GET method for navigation
  • POST method for forms
  • LOGIN for authentication

I found this page http://www.cs.tut.fi/~jkorpela/forms/cgic.html There is described how to implement GET and POST method.

But what about login and users? Is possible to use login names and password from linux? Do you have an example how to implement http authentication?

Or is better use this cgi c++ library? http://www.gnu.org/software/cgicc/

I have no experience with that, thanks.

A: 

I'm also running CGI in C on an embedded device and using cgihtml open source library by Eugene Eric Kim.

So far it seems to work well for POST and GET methods. I have not used it for authentication.

http://www.eekim.com/software/cgihtml/index.html

Tommy
A: 

I think you can use either the URL parameters or cookies to store the authentication information. Refer HTTP protocol for how to store cookies.

seagulf
A: 

I am not sure if your Linux distribution supports Perl. I have recently developed a CGI application using Perl and BOA web server for Angstrom Embedded Linux.

you can use perl CGI module for this.

Punit Soni