Skip to content

GSM library webClient example needs fix #1345

Closed
@dcuartielles

Description

@dcuartielles

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions