see: https://developer.mbed.org/users/phsfan/notebook/phsshield/

Dependencies:   a3gs mbed

Fork of PHSShield_httpGET by phs fan

Files at this revision

API Documentation at this revision

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() {