on-internet
← Community

getHeader from getInternalResponse in Symfony Panther always return an empty array

Stack Overflow ·

By using Symfony Panther, I sent a request and I wanted to get the response. I was able to get the body and the status code but for the header I just got an empty array. $client = Client::createChromeClient(); $client->request('GET', 'https://google.com'); $client->getInternalResponse()->getHeaders(); // returned empty array!!!

Comments

Sign in or sign up to comment and upvote.

No comments yet.