panther icon indicating copy to clipboard operation
panther copied to clipboard

getHeader from getInternalResponse in panther always return an empty array

Open gholam-montazery opened this issue 3 years ago • 2 comments

Symfony version(s) affected: 5.2

Description I sent my request by panther and intended to get the response so I used getInternalResponse method. by using this method I was able to get the body and status code without any problem but for header, I only got an empty array. I think this is a bug since I checked everything multiple times.

How to reproduce $client = Client::createChromeClient(); $client->request('GET', 'https://google.com'); $client->getInternalResponse()->getHeaders();

gholam-montazery avatar Mar 08 '21 06:03 gholam-montazery

Of course, stutus is always 200 even when the server 404

gholam-montazery avatar Mar 08 '21 08:03 gholam-montazery

Same issue here, seems related to #548 and #67

fnagel avatar Oct 13 '23 14:10 fnagel