I am trying to login to a website from a Command. I would like to inspect what headers are sent to the site so that I can compare them with what the browser sends. I am ASSuming the Cake Http Client will send some headers by default, I want view these.
I have been able to see the response headers via $this->Client->get($url)->getHeaders()
, but have found no way to see what headers are sent.