diff options
author | Friendika <info@friendika.com> | 2011-07-01 19:29:56 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-07-01 19:29:56 -0700 |
commit | ccb00d68827b1ec7ebc4e9c436e4f70354d1c9c4 (patch) | |
tree | be36fca40a9958e07bf0ea7f9dcb8f9157363a2b /boot.php | |
parent | 9534e335aa3e6897c4714086a71e8c4df088f035 (diff) | |
download | volse-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.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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)); |