-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Description
Hello
There was a problem with the method of POST, when I send an array of error takes off.
Helps formatting data to be sent via function http_build_query
public function post($url, $data, $params = array(), $debug = false)
{
$url = $this->buildUrl($url, $params);
$options = $this->getOptions();
$options[CURLOPT_POST] = true;
$options[CURLOPT_POSTFIELDS] = is_array($data) ? http_build_query($data) : $data;
return $this->exec($url, $options, $debug);
}
Metadata
Metadata
Assignees
Labels
No labels