Skip to content

GSM library webClient example needs fix #1345

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dcuartielles opened this issue Apr 3, 2013 · 1 comment
Closed

GSM library webClient example needs fix #1345

dcuartielles opened this issue Apr 3, 2013 · 1 comment
Assignees
Labels
Component: Documentation Related to Arduino's documentation content

Comments

@dcuartielles
Copy link
Member

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.

@ghost ghost assigned Fede85 Apr 3, 2013
@Fede85
Copy link
Contributor

Fede85 commented Apr 9, 2013

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

@Fede85 Fede85 closed this as completed Apr 9, 2013
Fede85 added a commit that referenced this issue Apr 9, 2013
oriregev pushed a commit to oriregev/Arduino that referenced this issue Dec 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Documentation Related to Arduino's documentation content
Projects
None yet
Development

No branches or pull requests

2 participants