aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-07-01 19:29:56 -0700
committerFriendika <info@friendika.com>2011-07-01 19:29:56 -0700
commitccb00d68827b1ec7ebc4e9c436e4f70354d1c9c4 (patch)
treebe36fca40a9958e07bf0ea7f9dcb8f9157363a2b /boot.php
parent9534e335aa3e6897c4714086a71e8c4df088f035 (diff)
downloadvolse-hubzilla-ccb00d68827b1ec7ebc4e9c436e4f70354d1c9c4.tar.gz
volse-hubzilla-ccb00d68827b1ec7ebc4e9c436e4f70354d1c9c4.tar.bz2
volse-hubzilla-ccb00d68827b1ec7ebc4e9c436e4f70354d1c9c4.zip
set user-agent
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index 120fb4660..b9b8871d4 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));