fix user-agent for curlclient

This commit is contained in:
Evan Prodromou 2009-09-15 22:05:57 -04:00
parent 6b7f09eba6
commit f8a8c14b55

View File

@ -88,10 +88,14 @@ class CurlClient extends HTTPClient
return $this->parseResults($result);
}
function post($url, $headers=null)
{
}
function setup($ch)
{
curl_setopt_array($ch,
array(CURLOPT_USERAGENT, $this->userAgent(),
array(CURLOPT_USERAGENT => $this->userAgent(),
CURLOPT_HEADER => true,
CURLOPT_RETURNTRANSFER => true));
}