mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-02 05:36:36 +00:00
Send PUT data values as GET parameters
This commit is contained in:
+1
-2
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user