mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-12-16 10:21:00 +01:00
stored http error text in curl mode
This commit is contained in:
parent
0084f0d1ba
commit
cf0231f9d1
@ -10,6 +10,7 @@
|
|||||||
$fetch_last_error = false;
|
$fetch_last_error = false;
|
||||||
$fetch_last_error_code = false;
|
$fetch_last_error_code = false;
|
||||||
$fetch_last_content_type = false;
|
$fetch_last_content_type = false;
|
||||||
|
$fetch_last_error_content = false; // curl only for the time being
|
||||||
$fetch_curl_used = false;
|
$fetch_curl_used = false;
|
||||||
$suppress_debugging = false;
|
$suppress_debugging = false;
|
||||||
|
|
||||||
@ -348,6 +349,7 @@
|
|||||||
|
|
||||||
global $fetch_last_error;
|
global $fetch_last_error;
|
||||||
global $fetch_last_error_code;
|
global $fetch_last_error_code;
|
||||||
|
global $fetch_last_error_content;
|
||||||
global $fetch_last_content_type;
|
global $fetch_last_content_type;
|
||||||
global $fetch_curl_used;
|
global $fetch_curl_used;
|
||||||
|
|
||||||
@ -430,6 +432,7 @@
|
|||||||
} else {
|
} else {
|
||||||
$fetch_last_error = "HTTP Code: $http_code";
|
$fetch_last_error = "HTTP Code: $http_code";
|
||||||
}
|
}
|
||||||
|
$fetch_last_error_content = $contents;
|
||||||
curl_close($ch);
|
curl_close($ch);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user