Setting the content type to application/x-www-form-urlencoded
appears to have done the trick, originally i had:
$command->set('command.headers', array('content-type' => 'application/json'));
However POST
requests in Guzzle
are sent with an application/x-www-form-urlencoded
Content-Type
$command->set('command.headers', array('content-type' => 'application/x-www-form-urlencoded'));
alternatively you can also do this in the json schema, setting a parameter of content-type:
"content-type": {
"location": "header",
"default": "application/x-www-form-urlencoded"
}