Hi, Can anyone help how to access the usbcamera remotely on webserver. I came to know the Mini2440 has boa webserver. But i cant find any coding help .. I require tutorials to develop remote control usbcamera on webserver.. When i type my ip , the leds.html is opening and able to control it. But cant understand how it is working.Kindly provide any pdf or tutorial for entire webserver programming Thanks a lot in advance
Access USBCamera remotely through webserver on mini2440
Hi Arjun, You can make web application in any language or script which can PRINT text to screen (stdout). Your program just have to print HTML on screen - when executed as CGI program, web server will redirect stdout to remote user - output will go to user's browser instead of screen. For example if you are using C language, basic program looks like this: #include <stdio.h> int main() { // This is http header and is mandatory. MUST be terminated with two linefeed characters: \n\n printf("Content-type: text/html\n\n"); // this is HTML content printf("<html><body>\n"); printf("<p>Hello world!</p>\n"); printf("</body></html>\n"); // return 0 means "success" return 0; } This is C example, but you can make CGI program in any language in the same way - just print HTTP header and HTML to screen. Here is good-old book about CGI programming: http://oreilly.com/openbook/cgi/ch01_01.html For receiving reqests from user (for example: data entered into form) you need to decode environment variables which are set by web server. This is not trivial, so you need to use some CGI library which does this job. If you are using C/C++ language, I will suggest you CppWeb library which is light-weight and portable - it compiles on ARM (and other systems) and has many usefull functions for CGI/Web programming. You can download CppWeb library here: http://sourceforge.net/projects/cppweb/ :)