From: Friendika Date: Sat, 2 Jul 2011 02:29:56 +0000 (-0700) Subject: set user-agent X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ccb00d68827b1ec7ebc4e9c436e4f70354d1c9c4;p=friendica.git set user-agent --- diff --git a/boot.php b/boot.php index 120fb46607..b9b8871d49 100644 --- a/boot.php +++ b/boot.php @@ -673,7 +673,7 @@ function fetch_url($url,$binary = false, &$redirects = 0) { curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER,true); - + curl_setopt($ch, CURLOPT_USERAGENT, "Friendika"); $curl_time = intval(get_config('system','curl_timeout')); curl_setopt($ch, CURLOPT_TIMEOUT, (($curl_time !== false) ? $curl_time : 60)); @@ -749,6 +749,7 @@ function post_url($url,$params, $headers = null, &$redirects = 0) { curl_setopt($ch, CURLOPT_RETURNTRANSFER,true); curl_setopt($ch, CURLOPT_POST,1); curl_setopt($ch, CURLOPT_POSTFIELDS,$params); + curl_setopt($ch, CURLOPT_USERAGENT, "Friendika"); $curl_time = intval(get_config('system','curl_timeout')); curl_setopt($ch, CURLOPT_TIMEOUT, (($curl_time !== false) ? $curl_time : 60));