see: https://developer.mbed.org/users/phsfan/notebook/phsshield/
Fork of PHSShield_httpGET by
Revision 3:952c3b733e4a, committed 2015-04-30
- Comitter:
- phsfan
- Date:
- Thu Apr 30 04:46:04 2015 +0000
- Parent:
- 2:12760b453533
- Commit message:
- fix Content-Type
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 12760b453533 -r 952c3b733e4a main.cpp --- a/main.cpp Fri Mar 20 08:20:46 2015 +0000 +++ b/main.cpp Thu Apr 30 04:46:04 2015 +0000 @@ -10,7 +10,7 @@ const char *server = "developer.mbed.org"; const char *path = "/media/uploads/phsfan/hello.txt"; -const char *head = "Accept: text/html\r\nConnection: Keep-Alive"; +const char *head = "Content-Type: application/x-www-form-urlencoded"; int port = 80; int main() {