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.
2 parents b444a2e + 0ec9036 commit 7e506d8Copy full SHA for 7e506d8
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 {
@@ -346,6 +347,7 @@ public function purge($url, $hostName = null)
346
347
348
public function post($url, $data = array(), $asJson = false)
349
350
+ $this->setOpt(CURLOPT_CUSTOMREQUEST, "POST");
351
$this->setOpt(CURLOPT_URL, $url);
352
if ($asJson) {
353
$this->prepareJsonPayload($data);
0 commit comments