To partially solve my problem, I used w3m text-based browser.
I start w3m with
-reqlog option and w3m save all headers, addresses history and cookies in
$ w3m -reqlog https://google.com
$ ls ~/.w3m cookie history request.log
~/.w3m/request.log stored all headers.
How can I keep the body of the pages?