mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 01:18:42 +01:00
Change user-agent to phpGroupWare
This commit is contained in:
parent
2b950e3583
commit
fcde09f5ab
@ -144,7 +144,7 @@
|
|||||||
$credentials = 'Authorization: Basic ' . base64_encode($username . ':' . $password) . "\r\n";
|
$credentials = 'Authorization: Basic ' . base64_encode($username . ':' . $password) . "\r\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
$op = 'POST ' . $this->path . " HTTP/1.0\r\nUser-Agent: PHP XMLRPC 1.0\r\n"
|
$op = 'POST ' . $this->path . " HTTP/1.0\r\nUser-Agent: phpGroupWare\r\n"
|
||||||
. 'Host: '. $this->server . "\r\n"
|
. 'Host: '. $this->server . "\r\n"
|
||||||
. 'X-PHPGW-Server: ' . $this->server . ' ' . "\r\n"
|
. 'X-PHPGW-Server: ' . $this->server . ' ' . "\r\n"
|
||||||
. 'X-PHPGW-Version: ' . $GLOBALS['phpgw_info']['server']['versions']['phpgwapi'] . "\r\n"
|
. 'X-PHPGW-Version: ' . $GLOBALS['phpgw_info']['server']['versions']['phpgwapi'] . "\r\n"
|
||||||
@ -199,7 +199,7 @@
|
|||||||
{
|
{
|
||||||
curl_setopt($curl, CURLOPT_VERBOSE, 1);
|
curl_setopt($curl, CURLOPT_VERBOSE, 1);
|
||||||
}
|
}
|
||||||
curl_setopt($curl, CURLOPT_USERAGENT, 'PHP XMLRPC 1.0');
|
curl_setopt($curl, CURLOPT_USERAGENT, 'phpGroupWare');
|
||||||
// required for XMLRPC
|
// required for XMLRPC
|
||||||
curl_setopt($curl, CURLOPT_POST, 1);
|
curl_setopt($curl, CURLOPT_POST, 1);
|
||||||
// post the data
|
// post the data
|
||||||
|
Loading…
Reference in New Issue
Block a user