$salmon = XML::fromArray($xmldata, $xml, false, $namespaces);
// slap them
- $postResult = DI::httpClient()->post($url, $salmon, HttpClientAccept::DEFAULT, [
+ $postResult = DI::httpClient()->post($url, $salmon, [
'Content-type' => 'application/magic-envelope+xml',
'Content-length' => strlen($salmon),
]);
$salmon = XML::fromArray($xmldata, $xml, false, $namespaces);
// slap them
- $postResult = DI::httpClient()->post($url, $salmon, HttpClientAccept::DEFAULT, [
+ $postResult = DI::httpClient()->post($url, $salmon, [
'Content-type' => 'application/magic-envelope+xml',
'Content-length' => strlen($salmon),
]);
$salmon = XML::fromArray($xmldata, $xml, false, $namespaces);
// slap them
- $postResult = DI::httpClient()->post($url, $salmon, HttpClientAccept::DEFAULT, [
+ $postResult = DI::httpClient()->post($url, $salmon, [
'Content-type' => 'application/magic-envelope+xml',
'Content-length' => strlen($salmon)]);
$return_code = $postResult->getReturnCode();