Commit f8a8c14b authored by Evan Prodromou's avatar Evan Prodromou

fix user-agent for curlclient

parent 6b7f09eb
......@@ -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));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment