28 #ifndef __CAHTTPCLIENT_HPP
29 #define __CAHTTPCLIENT_HPP
SINT32 sendGetRequest(const UINT8 *url)
Sends a HTTP GET request to the server.
CASocket * m_pSocket
the socket connection to the http server
SINT32 sendPostRequest(const UINT8 *url, const UINT8 *data, const UINT32 dataLen)
Sends a HTTP POST request to the server.
SINT32 getContent(UINT8 *a_pContent, UINT32 *a_pLength)
Retruns the content of the response.
SINT32 parseHTTPHeader(UINT32 *contentLength, UINT32 *statusCode=NULL, UINT32 msTimeOut=3000)
receives the HTTP header and parses the content length
SINT32 setSocket(CASocket *pSocket)
CAHttpClient(CASocket *pSocket)