mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 01:35:12 +00:00
z_fetch_url and z_post_url returning false
This commit is contained in:
parent
6126070a1d
commit
f7f20c5917
2 changed files with 3 additions and 3 deletions
|
@ -40,7 +40,7 @@ function z_fetch_url($url, $binary = false, $redirects = 0, $opts = array()) {
|
||||||
|
|
||||||
$ch = @curl_init($url);
|
$ch = @curl_init($url);
|
||||||
if(($redirects > 8) || (! $ch))
|
if(($redirects > 8) || (! $ch))
|
||||||
return false;
|
return $ret;
|
||||||
|
|
||||||
@curl_setopt($ch, CURLOPT_HEADER, true);
|
@curl_setopt($ch, CURLOPT_HEADER, true);
|
||||||
@curl_setopt($ch, CURLINFO_HEADER_OUT, true);
|
@curl_setopt($ch, CURLINFO_HEADER_OUT, true);
|
||||||
|
@ -171,7 +171,7 @@ function z_post_url($url,$params, $redirects = 0, $opts = array()) {
|
||||||
|
|
||||||
$ch = curl_init($url);
|
$ch = curl_init($url);
|
||||||
if(($redirects > 8) || (! $ch))
|
if(($redirects > 8) || (! $ch))
|
||||||
return ret;
|
return $ret;
|
||||||
|
|
||||||
@curl_setopt($ch, CURLOPT_HEADER, true);
|
@curl_setopt($ch, CURLOPT_HEADER, true);
|
||||||
@curl_setopt($ch, CURLINFO_HEADER_OUT, true);
|
@curl_setopt($ch, CURLINFO_HEADER_OUT, true);
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
2016-02-26.1319H
|
2016-02-27.1320H
|
||||||
|
|
Loading…
Reference in a new issue