u-blox modem HTTP client test

Dependencies:   UbloxUSBModem mbed

Revision:
6:d17e425e9425
Parent:
3:03b3ef627772
--- a/httptest.cpp	Mon Nov 04 09:00:29 2013 +0000
+++ b/httptest.cpp	Tue Jun 03 11:30:51 2014 +0100
@@ -4,9 +4,9 @@
 #include "httptest.h"
 
 int httptest(CellularModem& modem, const char* apn, const char* username, const char* password)
-{    
+{
     printf("Connecting...\n");
-    
+
     HTTPClient http;
     char str[512];
 
@@ -18,7 +18,7 @@
       printf("Could not connect\n");
       return false;
     }
-    
+
     //GET data
     printf("Trying to fetch page...\n");
     ret = http.get("http://mbed.org/media/uploads/donatien/hello.txt", str, 128);
@@ -33,7 +33,7 @@
       modem.disconnect();
       return false;
     }
-    
+
     //POST data
     HTTPMap map;
     HTTPText text(str, 512);
@@ -52,7 +52,7 @@
       modem.disconnect();
       return false;
     }
-    
+
     modem.disconnect();
     return true;
 }