void* HttpClient::open(const std::string& url, int32_t& contentLength, int32_t& httpStatus) { void* pHandle = nullptr; char* pContentType = nullptr; handleUPnPResult(UpnpOpenHttpGet(url.c_str(), &pHandle, &pContentType, &contentLength, &httpStatus, m_Timeout)); return pHandle; }
ERROR_TYPE IUpnp::OpenHttpGet(IN const char *url,IN OUT void **handle,IN OUT char **contentType, IN OUT int *contentLength, IN OUT int *httpStatus,IN int timeout) { return (ERROR_TYPE)UpnpOpenHttpGet(url,handle,contentType,contentLength,httpStatus,timeout); }