Fixed custom headers and Basic authorization, added support for redirection, functional file download interface can be used for SW updates and more.
Dependents: Sample_HTTPClient Sample_HTTPClient LWM2M_NanoService_Ethernet LWM2M_NanoService_Ethernet ... more
Fork of HTTPClient by
More recent changes - added iCal processing.
Derivative of a derivative, however this one works when it comes to supplying Basic authorization to access a protected resource. Some additional changes to the debug interface to clean it up for consistency with many other components I have.
Diff: data/HTTPText.h
- Revision:
- 16:1f743885e7de
- Parent:
- 10:e1351de84c16
- Child:
- 32:7b9919d59194
--- a/data/HTTPText.h Wed Aug 29 11:16:48 2012 +0000 +++ b/data/HTTPText.h Thu Aug 30 15:38:57 2012 +0000 @@ -41,6 +41,8 @@ protected: //IHTTPDataIn + virtual void readReset(); + virtual int read(char* buf, size_t len, size_t* pReadLen); virtual int getDataType(char* type, size_t maxTypeLen); //Internet media type for Content-Type header @@ -50,6 +52,8 @@ virtual size_t getDataLen(); //For Content-Length header //IHTTPDataOut + virtual void writeReset(); + virtual int write(const char* buf, size_t len); virtual void setDataType(const char* type); //Internet media type from Content-Type header