mirror of
https://github.com/friendica/friendica
synced 2024-11-18 21:03:41 +00:00
curl_code tests
This commit is contained in:
parent
555c377fda
commit
289a0dc268
1 changed files with 0 additions and 2 deletions
2
boot.php
2
boot.php
|
@ -423,8 +423,6 @@ function fetch_url($url,$binary = false, &$redirects = 0) {
|
||||||
|
|
||||||
$s = curl_exec($ch);
|
$s = curl_exec($ch);
|
||||||
|
|
||||||
// logger('Curl ' . curl_getinfo($ch,CURLINFO_HTTP_CODE));
|
|
||||||
|
|
||||||
$http_code = intval(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"));
|
$header = substr($s,0,strpos($s,"\r\n\r\n"));
|
||||||
if(stristr($header,'100') && (strlen($header) < 30)) {
|
if(stristr($header,'100') && (strlen($header) < 30)) {
|
||||||
|
|
Loading…
Reference in a new issue