symfony / panther

A browser testing and web crawling library for PHP and Symfony
MIT License
2.94k stars 222 forks source link

getHeader from getInternalResponse in panther always return an empty array #441

Open gholam-montazery opened 3 years ago

gholam-montazery commented 3 years ago

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 commented 3 years ago

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

fnagel commented 1 year ago

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