fix user-agent for curlclient
This commit is contained in:
parent
6b7f09eba6
commit
f8a8c14b55
@ -88,10 +88,14 @@ class CurlClient extends HTTPClient
|
|||||||
return $this->parseResults($result);
|
return $this->parseResults($result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function post($url, $headers=null)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
function setup($ch)
|
function setup($ch)
|
||||||
{
|
{
|
||||||
curl_setopt_array($ch,
|
curl_setopt_array($ch,
|
||||||
array(CURLOPT_USERAGENT, $this->userAgent(),
|
array(CURLOPT_USERAGENT => $this->userAgent(),
|
||||||
CURLOPT_HEADER => true,
|
CURLOPT_HEADER => true,
|
||||||
CURLOPT_RETURNTRANSFER => true));
|
CURLOPT_RETURNTRANSFER => true));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user