Fork HTTPClient and Modfiy code for mbed 6.0
Dependents: mbed-demo-http-get-json
Diff: HTTPClient.cpp
- Revision:
- 26:58b6fe9f596b
- Parent:
- 25:76084defa790
- Child:
- 28:c0c7a6321f84
--- a/HTTPClient.cpp Sun Mar 23 20:40:05 2014 +0000 +++ b/HTTPClient.cpp Sun Apr 20 17:05:27 2014 +0000 @@ -18,7 +18,7 @@ */ //Debug is disabled by default -//#define DEBUG "HTCL" +#define DEBUG "HTCL" #include <cstdio> #if (defined(DEBUG) && !defined(TARGET_LPC11U24)) #define DBG(x, ...) std::printf("[DBG %s %3d] "x"\r\n", DEBUG, __LINE__, ##__VA_ARGS__); @@ -313,7 +313,7 @@ //Parse HTTP response if( sscanf(buf, "HTTP/%*d.%*d %d %*[^\r\n]", &m_httpResponseCode) != 1 ) { //Cannot match string, error - ERR("Not a correct HTTP answer : %s\n", buf); + ERR("Not a correct HTTP answer : {%s}\n", buf); PRTCL_ERR(); }