After doing an http Request by using Guzzle, I want to print all the response headers. How can I do that?
In the guzzle documentation it is stated that the getHeaders() method should be able to cast headers to string, but doing
print $response->getHeaders();
?> does not work. It is also stated that in GuzzleHttp\Message\Response there should be a method called getRawHeaders() that should return the headers as a string, but php tells me that the method is undefined on the Response object. So, how can I accomplish my task of printing all the response headers as a string?