Modified HTTPClient to fit lwip changes.
Fork of HTTPClient by
Revision 37:61814f654883, committed 2016-02-26
- Comitter:
- jfanucch
- Date:
- Fri Feb 26 13:13:12 2016 +0000
- Parent:
- 36:a5c13e512b78
- Commit message:
- Bug fix to fit socket send call.
Changed in this revision
HTTPClient.cpp | Show annotated file Show diff for this revision Revisions of this file |
HTTPClient.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r a5c13e512b78 -r 61814f654883 HTTPClient.cpp --- a/HTTPClient.cpp Tue Jan 26 11:44:35 2016 +0000 +++ b/HTTPClient.cpp Fri Feb 26 13:13:12 2016 +0000 @@ -559,7 +559,7 @@ return HTTP_OK; } -HTTPResult HTTPClient::send(const char* buf, size_t len) //0 on success, err code on failure +HTTPResult HTTPClient::send(char* buf, size_t len) //0 on success, err code on failure { if(len == 0) { len = strlen(buf);
diff -r a5c13e512b78 -r 61814f654883 HTTPClient.h --- a/HTTPClient.h Tue Jan 26 11:44:35 2016 +0000 +++ b/HTTPClient.h Fri Feb 26 13:13:12 2016 +0000 @@ -171,7 +171,7 @@ HTTPResult connect(const char* url, HTTP_METH method, IHTTPDataOut* pDataOut, IHTTPDataIn* pDataIn, int timeout); //Execute request HTTPResult recv(char* buf, size_t minLen, size_t maxLen, size_t* pReadLen); //0 on success, err code on failure - HTTPResult send(const char* buf, size_t len = 0); //0 on success, err code on failure + HTTPResult send(char* buf, size_t len = 0); //0 on success, err code on failure HTTPResult parseURL(const char* url, char* scheme, size_t maxSchemeLen, char* host, size_t maxHostLen, uint16_t* port, char* path, size_t maxPathLen); //Parse URL void createauth (const char *user, const char *pwd, char *buf, int len); int base64enc(const char *input, unsigned int length, char *output, int len);