if (request->ch) {
http_request_defaults(request);
}
+ request->_error[0] = '\0';
}
/* }}} */
HTTP_CURL_INFO(CURLINFO_CONTENT_TYPE);
HTTP_CURL_INFO(CURLINFO_HTTPAUTH_AVAIL);
HTTP_CURL_INFO(CURLINFO_PROXYAUTH_AVAIL);
- /*HTTP_CURL_INFO(OS_ERRNO);*/
+ HTTP_CURL_INFO(CURLINFO_OS_ERRNO);
+ add_assoc_string(&array, "error", request->_error, 1);
HTTP_CURL_INFO(CURLINFO_NUM_CONNECTS);
#if LIBCURL_VERSION_NUM >= 0x070e01
HTTP_CURL_INFO_EX(CURLINFO_COOKIELIST, "cookies");