forked from weirdhome
Fork of HTTPClient by
Revision 46:01970be2f08a, committed 2018-04-22
- Comitter:
- udareaniket
- Date:
- Sun Apr 22 23:31:03 2018 +0000
- Parent:
- 45:accd09953fae
- Commit message:
- initial commit
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 accd09953fae -r 01970be2f08a HTTPClient.cpp --- a/HTTPClient.cpp Sun Oct 01 18:07:05 2017 +0000 +++ b/HTTPClient.cpp Sun Apr 22 23:31:03 2018 +0000 @@ -588,7 +588,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 accd09953fae -r 01970be2f08a HTTPClient.h --- a/HTTPClient.h Sun Oct 01 18:07:05 2017 +0000 +++ b/HTTPClient.h Sun Apr 22 23:31:03 2018 +0000 @@ -180,7 +180,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);