libdas2
das2 core C utilities
|
functions for reading and writing http messages More...
functions for reading and writing http messages
Go to the source code of this file.
Data Structures | |
struct | das_url |
A parsed URL structure. More... | |
struct | DasHttpResp |
Encapsulates the status of a HTTP resource request. More... | |
Functions | |
char * | das_ssl_getErr (const void *vpSsl, int nRet) |
Get a new string allocated on the heap explaining an SSL error or NULL in nRet == 0. More... | |
void | DasHttpResp_freeFields (DasHttpResp *pRes) |
Free any fields that contain allocated memory This will not free the pRes structure itself, only sub-items such as pMime etc. More... | |
bool | das_http_getBody (const char *sUrl, const char *sAgent, DasCredMngr *pMgr, DasHttpResp *pRes, float rConSec) |
Get a socket positioned at the start of a remote resource. More... | |
DasAry * | das_http_readUrl (const char *sUrl, const char *sAgent, DasCredMngr *pMgr, DasHttpResp *pRes, int64_t nLimit, float rConSec) |
Read all the bytes for a URL into a byte array. More... | |
void DasHttpResp_freeFields | ( | DasHttpResp * | pRes | ) |
Free any fields that contain allocated memory This will not free the pRes structure itself, only sub-items such as pMime etc.
To free the over all structure (if it was allocated on the heap) call free(pRes).