Arduino
Arduino copied to clipboard
GSM library webClient example needs fix
This library has given us some trouble when trying it out at a course in Sweden. The request to the server is not including the HOST and some servers tend to answer with a 404 error. It should be corrected to:
// Make a HTTP request: client.print("GET "); client.print(path); client.println(" HTTP/1.0"); client.println(); client.print("HOST: "); client.println(server); client.println();
Where the last three lines are missing in the current example.
well, seems a good pratice specially if the server is on a virtual machine I guess