]> git.mxchange.org Git - friendica-addons.git/commitdiff
Switching the user agent because CloudFlare has blocked the old one
authorMichael Vogel <icarus@dabo.de>
Mon, 14 Oct 2013 23:13:09 +0000 (01:13 +0200)
committerMichael Vogel <icarus@dabo.de>
Mon, 14 Oct 2013 23:13:09 +0000 (01:13 +0200)
appnetpost/appnetpost.php
gpluspost/gpluspost.php

index f434f0986969e1a341d01d23144daaed76024d76..ca6d5d27ed02cd6347decfad5e0d7a0207c1f0e1 100644 (file)
@@ -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);
index eb35cd3371efe6e1bb4e1e9cc9c9c927436b4867..08bb1423c036f63a82e5e202b945a9f7bd803cc4 100644 (file)
@@ -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);