Monday, September 22, 2008

Lynx as command line replacement for Liveheaders


Liveheaders is great to trace HTTP traffic from a GUI browser.

Here's how to use Lynx as command line replacement for Liveheaders:

Use -trace:

Warning: It's verbose!

The lynx log is started when Lynx trace mode is turned on via the -trace command (default file is Lynx.trace)

I.E

#lynx -accept_all_cookies -trace http://www.google.com

Here's the HTTP Commands Sent by Lynx (in red) and the Header Sent back by a web site (Google.com) (in yellow/red):



Notice the the headers sent back by the web site aren't contiguous, but there's alot of HTML/HTTP diagnostic info.

Also: the "-accept_all_cookies" option will accept all cookies and not prompt you incessantly to accept them.


More Info:
http://lynx.isc.org/
lynx man page

0 comments: