Browse Source

curl_code tests

pull/1/head
Friendika 12 years ago
parent
commit
289a0dc268
  1. 2
      boot.php

2
boot.php

@ -423,8 +423,6 @@ function fetch_url($url,$binary = false, &$redirects = 0) {
$s = curl_exec($ch);
// logger('Curl ' . curl_getinfo($ch,CURLINFO_HTTP_CODE));
$http_code = intval(curl_getinfo($ch, CURLINFO_HTTP_CODE));
$header = substr($s,0,strpos($s,"\r\n\r\n"));
if(stristr($header,'100') && (strlen($header) < 30)) {

Loading…
Cancel
Save