Send PUT data values as GET parameters

This commit is contained in:
php-curl-class
2013-08-20 16:55:19 -07:00
parent b5c516ec34
commit 4c1a842cc4
+1 -2
View File
@@ -28,9 +28,8 @@ class Curl {
}
function put($url, $data=array()) {
$this->setopt(CURLOPT_URL, $url);
$this->setopt(CURLOPT_URL, $url . '?' . http_build_query($data));
$this->setopt(CURLOPT_CUSTOMREQUEST, 'PUT');
$this->setopt(CURLOPT_POSTFIELDS, $data);
$this->_exec();
}