Guzzle returns empty body response, expecting XML

224 Views Asked by At

I'm using Guzzle 6.5.5 to send a get request and I'm expecting an XML response, but the request returns 200 (OK) with no content. I've tried $response->getBody() and $response->getBody()->getContents() to no avail. I've also tried setting the 'Accept' header parameter to 'application/xml' but that didn't seem to make a difference.

What am I missing here?

0

There are 0 best solutions below