lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Dynamic web pages with lwip1.3.2


From: Funk, Artur
Subject: Re: [lwip-users] Dynamic web pages with lwip1.3.2
Date: Wed, 8 Aug 2012 17:27:48 +0200

>So you recommend me to use ajax/javascript instead of php for the get
and post methods?
You can't use PHP on STM32 but you can't replace php by JS. PHP could
held you to parse
Get/post where JS is just client based. Since you can't use php on your
device you have
To write a custom get/post parser. JS/Ajax can make you page more user
friendly by allowing
to send get/post request or refreshing the output without to reload the
whole page.
I would say, just begin to parse the GET/POST variables.


>Concerning the led, once I parsed the ledstate variable, in my C
program I would just have to put something like:
>..
yes

>Another thing, if I have a webpage which asks the login and the
password, I understand how to check that login and password are correct
but how would you manage the >redirection on the corresponding webpage
(and display dynamically "welcome 'LOGIN'")? 
Just send a responding header if the password is not set like HTTP/1.1
401 Authorization Required and use sha or base64 encoding for auth.
Another way is to check if via get/post received pass is correct, if not
don't load other pages and redirect the user back all the time to the
auth page. 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]