Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

GSM library webClient example needs fix

Open dcuartielles opened this issue 13 years ago • 1 comments

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.

dcuartielles avatar Apr 03 '13 15:04 dcuartielles

well, seems a good pratice specially if the server is on a virtual machine I guess

Fede85 avatar Apr 09 '13 11:04 Fede85