2006-10-17 Ernesto Baschny <ernst@cron-it.de>
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_div.php
index 1c47a58..1dced5a 100755 (executable)
@@ -2321,6 +2321,7 @@ class t3lib_div {
                        curl_setopt($ch, CURLOPT_NOBODY, $includeHeader == 2 ? 1 : 0);
                        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
                        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
+                       curl_setopt($ch, CURLOPT_FAILONERROR, 1);
                        if (is_array($requestHeaders))  {
                                curl_setopt($ch, CURLOPT_HTTPHEADER, $requestHeaders);
                        }