$ telnet 80
GET /
It should be noted that the above isn't a strict HTTP request header, it's missing quite a lot of detail, but it works as an example.HTTP/1.1 wasn't around until 1996 so back then Host: headers weren't even "optional". They simply didn't exist yet.
When I started my work on httpget in 1996, I didn't know about wget and I didn't become aware of it until several years later....
now days we use curl/wget for web dev it seems? probably used it for the same thing back then but I also image that lots of people just used their own ad-hoc scripts or whatever; i wish i had firsthand knowledge of that.
i used wget to download copies of websites when i found one that was mostly documents/images rather than webapps.
I loved wget for that. what are your options? Mine was always -r -p -k -nH --cut-dirs=2 -np
Copyright 1995-2009, Gisle Aas
Copyright 1995, Martijn Koster
Round about then I wrote something similar to WWW::Mechanize in order to automate access to the Orange Web-SMS gateway, which had an inconveniently deep login procedure.
[1] http://search.cpan.org/~ether/libwww-perl/ (see changelog)
I can't remember what I eventually did but I do remember discovering lynx -dump, so thanks for the reminder!
lynx -head -dump http://httpbin.org
Your version dumps the body as well, which is hard to parse if you just need the headers.On another note: Thanks for curl - it's always high up in my charts somehow. Right now #2 in
history 0 | awk '{print $2}' | sort | uniq -c | sort -n -r | head -n 20http://www.rfc-base.org/txt/rfc-1945.txt
HTTP has been in use by the World-Wide Web global information initiative since 1990. This specification reflects common usage of the protocol referred to as "HTTP/1.0".
Basic HTTP as defined in 1992 had GET, PUT, HEAD, POST, LINK, TEXTSEARCH, CHECKIN, etc.: http://www.w3.org/Protocols/HTTP/Methods.html
More generic info: http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol