]> git.wh0rd.org Git - tt-rss.git/commitdiff
stored http error text in curl mode
authorAndrew Dolgov <noreply@fakecake.org>
Tue, 12 Aug 2014 15:36:45 +0000 (19:36 +0400)
committerAndrew Dolgov <noreply@fakecake.org>
Tue, 12 Aug 2014 15:36:45 +0000 (19:36 +0400)
include/functions.php

index 8d07acf5a439916e06e2b516952158d3264cfde9..a8fc9fbe511d10e1aa1ca15e966792c43a763465 100644 (file)
@@ -10,6 +10,7 @@
        $fetch_last_error = false;
        $fetch_last_error_code = false;
        $fetch_last_content_type = false;
+       $fetch_last_error_content = false; // curl only for the time being
        $fetch_curl_used = false;
        $suppress_debugging = false;
 
 
                global $fetch_last_error;
                global $fetch_last_error_code;
+               global $fetch_last_error_content;
                global $fetch_last_content_type;
                global $fetch_curl_used;
 
                                } else {
                                        $fetch_last_error = "HTTP Code: $http_code";
                                }
+                               $fetch_last_error_content = $contents;
                                curl_close($ch);
                                return false;
                        }