// // Created by xajhu on 2019/11/18 0018. // #ifndef ZTP_CLIENT_RESTFUL_H #define ZTP_CLIENT_RESTFUL_H typedef void (*OnHttpResponse)(void *pData, unsigned int size, const char *pReqUrl, const char *pDlPath, const char *pTaskUuid, int iFinished, void *pUserData); int http_post_request_async(const char *pURL, const char *pPost, OnHttpResponse onRespCb); int http_post_request(const char *pURL, const char *pPost, unsigned char* pBuf, unsigned int *pOutSize); #endif //ZTP_CLIENT_RESTFUL_H