Web server.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Web server.

940 Views
jorgebuxman
Contributor I

Estoy probando el ejemplo lwip_httpserver_demo_frdmk64f y funciona perfecto, la pregunta es: como puedo cambiar o modificar el contenido del index.html?

Labels (1)
1 Reply

756 Views
ivadorazinova
NXP Employee
NXP Employee

Hello Jorge Buxman,

the main page for HTTP Server Demo on lwIP TCP/IP Stack, you can modify here in main.c, inserting code to const static char http_index_html[].

You can find it here

C:\Freescale\KSDK_1.3.0\examples\frdmk64f\demo_apps\lwip\lwip_httpserver_demo\httpserver_rtos\main.c

const static char http_html_hdr[] = "HTTP/1.1 200 OK\r\nContent-type: text/html\r\n\r\n";

const static char http_index_html[] = "<html><head><title>Congrats!</title></head><body><h1>Welcome to our lwIP HTTP server!</h1><p>This is a very small test page, served by httpserver-netconn. You can type here what you want</body></html>";

demo2.png

I hope this helps.

Best Regards,

Iva

0 Kudos