Httpclient changes
Dependents: Final_ver2 Final_test
Fork of HTTPClient by
Diff: HTTPClient.cpp
- Revision:
- 21:f042d41ddf10
- Parent:
- 20:a0201b94b774
- Child:
- 22:9e246a41abe8
diff -r a0201b94b774 -r f042d41ddf10 HTTPClient.cpp --- a/HTTPClient.cpp Mon Mar 16 11:30:54 2015 +0000 +++ b/HTTPClient.cpp Wed Apr 22 01:46:05 2015 +0000 @@ -21,7 +21,8 @@ #if 1 //Enable debug #include <cstdio> -#define DBG(x, ...) std::printf("[HTTPClient : DBG]"x"\r\n", ##__VA_ARGS__); +//#define DBG(x, ...) std::printf("[HTTPClient : DBG]"x"\r\n", ##__VA_ARGS__); +#define DBG(X, ...) #define WARN(x, ...) std::printf("[HTTPClient : WARN]"x"\r\n", ##__VA_ARGS__); #define ERR(x, ...) std::printf("[HTTPClient : ERR]"x"\r\n", ##__VA_ARGS__); @@ -41,7 +42,7 @@ #define MAX(x,y) (((x)>(y))?(x):(y)) #define CHUNK_SIZE 256 -#define BUF_SIZE 64 +#define BUF_SIZE 512 #include <cstring>