lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] httpd: how to redirect to a new address


From: Jan Menzel
Subject: [lwip-users] httpd: how to redirect to a new address
Date: Mon, 19 Feb 2018 23:18:39 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

Hi all!
        In our application we wont to allow the user to change the ip address
of the server using a webpage. I wonder what would be the best way of
doing that.
        At present we use a very basic webserver that servers a different page
(with HTTP status code 301) if the parameters update the ip address.
After sending out the last byte we change the ip address, so the server
is immediately listening on the new address.
        With lwip we can either use LWIP_HTTPD_CGI_SSI with a single parameter
handler but how to server different status codes? And, when is the
correct time of changing the ip address? Or we could use LWIP_HTTPD_CGI
which read kind of deprecated in the documentation.
        Is there a recommended procedure how lwip can server is purpose?

        Jan



reply via email to

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