From: Michael Vogel Date: Mon, 14 Oct 2013 23:13:09 +0000 (+0200) Subject: Switching the user agent because CloudFlare has blocked the old one X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d87ded74322a5649ad8b8c69792917a5c1e06206;p=friendica-addons.git Switching the user agent because CloudFlare has blocked the old one --- diff --git a/appnetpost/appnetpost.php b/appnetpost/appnetpost.php index f434f098..ca6d5d27 100644 --- a/appnetpost/appnetpost.php +++ b/appnetpost/appnetpost.php @@ -202,7 +202,7 @@ function appnetpost_original_url($url, $depth=1) { curl_setopt($ch, CURLOPT_NOBODY, 0); curl_setopt($ch, CURLOPT_TIMEOUT, 3); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - curl_setopt($ch,CURLOPT_USERAGENT,'Opera/9.64(Windows NT 5.1; U; de) Presto/2.1.1'); + curl_setopt($ch,CURLOPT_USERAGENT,'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Firefox/24.0'); $header = curl_exec($ch); $curl_info = @curl_getinfo($ch); diff --git a/gpluspost/gpluspost.php b/gpluspost/gpluspost.php index eb35cd33..08bb1423 100644 --- a/gpluspost/gpluspost.php +++ b/gpluspost/gpluspost.php @@ -220,7 +220,7 @@ function gpluspost_original_url($url, $depth=1) { curl_setopt($ch, CURLOPT_NOBODY, 0); curl_setopt($ch, CURLOPT_TIMEOUT, 3); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - curl_setopt($ch,CURLOPT_USERAGENT,'Opera/9.64(Windows NT 5.1; U; de) Presto/2.1.1'); + curl_setopt($ch,CURLOPT_USERAGENT,'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Firefox/24.0'); $header = curl_exec($ch); $curl_info = @curl_getinfo($ch);