I need to grab and debug all HTTP-requests and responds which I make from lynx or another text-based browser. How can I save all request URLs, redirects, headers and page sources for analyze and debug this information? I do not need JavaScript support. What tools are better for this purpose?
Update
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
directory.
For example:
$ w3m -reqlog https://google.com
Check ~/.w3m
:
$ ls ~/.w3m
cookie history request.log
In ~/.w3m/request.log
stored all headers.
How can I keep the body of the pages?
wireshark
group (and logging in again to make that effective).