We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec22ad2 commit 0ec9036Copy full SHA for 0ec9036
src/Curl/Curl.php
@@ -304,6 +304,7 @@ public function _exec()
304
*/
305
public function get($url, $data = array())
306
{
307
+ $this->setOpt(CURLOPT_CUSTOMREQUEST, "GET");
308
if (count($data) > 0) {
309
$this->setOpt(CURLOPT_URL, $url.'?'.http_build_query($data));
310
} else {
@@ -324,6 +325,7 @@ public function get($url, $data = array())
324
325
326
public function post($url, $data = array(), $asJson = false)
327
328
+ $this->setOpt(CURLOPT_CUSTOMREQUEST, "POST");
329
$this->setOpt(CURLOPT_URL, $url);
330
if ($asJson) {
331
$this->prepareJsonPayload($data);
0 commit comments