I want to perform a post with guzzle sending an xml file. I did not find an example.
What I \'ve done so far is :
$xml2=simplexml_load_string($xml) or d
This is what worked for me on Guzzle 6:
// configure options $options = [ 'headers' => [ 'Content-Type' => 'text/xml; charset=UTF8', ], 'body' => $xml, ]; $response = $client->request('POST', $url, $options);