diff --git a/app/src/main/cpp/netcamera/httpclient.cpp b/app/src/main/cpp/netcamera/httpclient.cpp index 20b3142d..6bd09fd0 100644 --- a/app/src/main/cpp/netcamera/httpclient.cpp +++ b/app/src/main/cpp/netcamera/httpclient.cpp @@ -108,7 +108,8 @@ int DoGetRequest(const char* url, int authType, const char* userName, const char } else { - XYLOG(XYLOG_SEVERITY_WARNING, "Net Photo failure, nRet=%d", (int)nRet); + curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &responseCode); + XYLOG(XYLOG_SEVERITY_WARNING, "Net Photo failure, nRet=%d, code=%d", (int)nRet, (int)responseCode); // printf("GET err=%d", nRet); } curl_easy_cleanup(curl);