Chat freely about anything...

User avatar
By Ian Phill
#56849 Hello everyone, I want to get the html content of my server but it's in 192.168.4.1 in the following code i get a empty result, I think it's because the index.html don't exist. Somebody can tell me how I can solve this problem.

Thank you.

//---In my server I put this
server.send(200, "text/html", "<h1>1234</h1>");
//---

//---This is in my client, and the objective is to get 1234
//====Make an HTTP GET request====
client.println("GET /index.html HTTP/1.1");
client.print("Host: ");
client.println(host);
client.println("Connection: close");
client.println();