mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 05:35:12 +00:00
minor
This commit is contained in:
parent
d96a7bc1fa
commit
33aa373b3f
1 changed files with 3 additions and 3 deletions
|
@ -51,7 +51,7 @@ function z_fetch_url($url, $binary = false, $redirects = 0, $opts = array()) {
|
||||||
@curl_setopt($ch, CURLOPT_CAINFO, get_capath());
|
@curl_setopt($ch, CURLOPT_CAINFO, get_capath());
|
||||||
@curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
|
@curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
|
||||||
@curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
|
@curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
|
||||||
@curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; Red)");
|
@curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; zot)");
|
||||||
|
|
||||||
$ciphers = @get_config('system','curl_ssl_ciphers');
|
$ciphers = @get_config('system','curl_ssl_ciphers');
|
||||||
if($ciphers)
|
if($ciphers)
|
||||||
|
@ -84,7 +84,7 @@ function z_fetch_url($url, $binary = false, $redirects = 0, $opts = array()) {
|
||||||
@curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $opts['custom']);
|
@curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $opts['custom']);
|
||||||
|
|
||||||
if(x($opts,'timeout') && intval($opts['timeout'])) {
|
if(x($opts,'timeout') && intval($opts['timeout'])) {
|
||||||
@curl_setopt($ch, CURLOPT_TIMEOUT, $opts['timeout']);
|
@curl_setopt($ch, CURLOPT_TIMEOUT, intval($opts['timeout']));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$curl_time = intval(@get_config('system','curl_timeout'));
|
$curl_time = intval(@get_config('system','curl_timeout'));
|
||||||
|
@ -218,7 +218,7 @@ function z_post_url($url,$params, $redirects = 0, $opts = array()) {
|
||||||
@curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
|
@curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
|
||||||
@curl_setopt($ch, CURLOPT_POST,1);
|
@curl_setopt($ch, CURLOPT_POST,1);
|
||||||
@curl_setopt($ch, CURLOPT_POSTFIELDS,$params);
|
@curl_setopt($ch, CURLOPT_POSTFIELDS,$params);
|
||||||
@curl_setopt($ch, CURLOPT_USERAGENT, "Red");
|
@curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; zot)");
|
||||||
|
|
||||||
$ciphers = @get_config('system','curl_ssl_ciphers');
|
$ciphers = @get_config('system','curl_ssl_ciphers');
|
||||||
if($ciphers)
|
if($ciphers)
|
||||||
|
|
Loading…
Reference in a new issue