Hello. I have a simple program that uses the ethernet shield. The code use the method GET in this way:
client.print("GET /myPage.php?parameter=147 HTTP/1.1"); client.println("Host: www.eeteam.net");
If I use HTTP/1.1 I obtain the following error:400 Bad Request
Your browser sent a request that this server could not understand.
if i use HTTP 1.0
client.print("GET /myPage.php?parameter=147 HTTP/1.0"); //client.println("Host: www.eeteam.net");
I have no error but I can’t specify the host name.
Do you know why with HTTP1.1 the server say it is a bad request?
Thanks in advance