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:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
</body></html>
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