The original HTTPClient by donatien with 2 bugfixes
Fork of HTTPClient by
Revision 20:d1e87804a774, committed 2015-03-07
- Comitter:
- the_programmer
- Date:
- Sat Mar 07 12:20:06 2015 +0000
- Parent:
- 19:277279a1891e
- Parent:
- 17:f924558692e3
- Commit message:
- Struct bugfix + Buffer increase
Changed in this revision
HTTPClient.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/HTTPClient.cpp Wed May 07 16:48:10 2014 +0000 +++ b/HTTPClient.cpp Sat Mar 07 12:20:06 2015 +0000 @@ -127,7 +127,7 @@ char scheme[8]; uint16_t port; char host[32]; - char path[64]; + char path[128]; //First we need to parse the url (http[s]://host[:port][/[path]]) -- HTTPS not supported (yet?) HTTPResult res = parseURL(url, scheme, sizeof(scheme), host, sizeof(host), &port, path, sizeof(path)); if(res != HTTP_OK)
--- a/HTTPClient.h Wed May 07 16:48:10 2014 +0000 +++ b/HTTPClient.h Sat Mar 07 12:20:06 2015 +0000 @@ -36,6 +36,7 @@ ///HTTP client results enum HTTPResult { + HTTP_OK = 0, ///<Success HTTP_PROCESSING, ///<Processing HTTP_PARSE, ///<url Parse error HTTP_DNS, ///<Could not resolve name @@ -46,7 +47,6 @@ HTTP_TIMEOUT, ///<Connection timeout HTTP_CONN, ///<Connection error HTTP_CLOSED, ///<Connection was closed by remote host - HTTP_OK = 0, ///<Success }; /**A simple HTTP Client