Fork HTTPClient and Modfiy code for mbed 6.0
Dependents: mbed-demo-http-get-json
Diff: HTTPClient.h
- Revision:
- 18:cf5d7427a9ec
- Parent:
- 17:8299c6440e37
- Child:
- 19:bcbf0af9fac3
--- a/HTTPClient.h Fri Jan 18 17:15:39 2013 +0000 +++ b/HTTPClient.h Sun Apr 28 10:04:51 2013 +0000 @@ -140,6 +140,8 @@ HTTPResult recv(char* buf, size_t minLen, size_t maxLen, size_t* pReadLen); //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); //Parameters TCPSocketConnection m_sock;