News for hackers. Stuff that matters.
Re:Curl, 17 years old today by wging on Friday March 20, 2015 @04:59AM (#9236703)
I'm surprised it's so new. And wget is only a year older... what did people use before then?
Re:Curl, 17 years old today by laumars on Friday March 20, 2015 @06:02AM (#9236838)
Sometimes just plain telnet. It wasn't pretty, but it worked:

    $ 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.
Re:Curl, 17 years old today by TazeTSchnitzel on Friday March 20, 2015 @11:57AM (#9238453)
Add two newlines and that is a perfectly valid HTTP/0.9 request.
Re:Curl, 17 years old today by josteink on Friday March 20, 2015 @06:49AM (#9236947)
Pre curl/wget that was probably sufficient.

HTTP/1.1 wasn't around until 1996 so back then Host: headers weren't even "optional". They simply didn't exist yet.

Re:Curl, 17 years old today by gsnedders on Friday March 20, 2015 @09:54AM (#9237692)
That's what HTTP/0.9 requests look like!
Re:Curl, 17 years old today by bagder on Friday March 20, 2015 @05:02AM (#9236710)
Those were the early days of HTTP, so no, people didn't really get a lot of HTTP "manually" like that. We used other existing tools to get gopher and ftp though.

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....

Re:Curl, 17 years old today by hoboon on Friday March 20, 2015 @05:51AM (#9236817)
I would figure that by 1997 most people stopped using gopher/archive/veronica. I think I stopped by 1995 or so.

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.

Re:Curl, 17 years old today by weland on Friday March 20, 2015 @08:17AM (#9237191)
I use wget for plain, old regular downloads a lot. If I need to save a file to a specific place (e.g. datasheets to a doc/ directory in my project) and I have a terminal already open there (which I usually do), doing wget and middle-click is far more convenient than dealing with the browsers' "Save to..." dialog. Especially ever since they started considering a sane download manager to be one of those confusing features that users totally don't want.
Re:Curl, 17 years old today by hoboon on Friday March 20, 2015 @07:21PM (#9241257)
> I use wget for plain, old regular downloads a lot.

I loved wget for that. what are your options? Mine was always -r -p -k -nH --cut-dirs=2 -np

Re:Curl, 17 years old today by pjc50 on Friday March 20, 2015 @06:18AM (#9236881)
In the HTTP/1.0 days I used telnet quite a bit. Or libwww-perl, when Perl was the language of choice for web applications. LWP has copyright notice:

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.

Re:Curl, 17 years old today by tootie on Friday March 20, 2015 @09:05AM (#9237380)
Perl? I have only the vaguest recollection of those days. It looks like LWP is about 20 years old[1]. It's based on libwww which goes back to 1992[2].

[1] http://search.cpan.org/~ether/libwww-perl/ (see changelog)

[2] https://en.wikipedia.org/wiki/Libwww

Re:Curl, 17 years old today by zimpenfish on Friday March 20, 2015 @05:52AM (#9236820)
`lynx -dump` was a very useful tool.
Re:Curl, 17 years old today by 72deluxe on Friday March 20, 2015 @06:15AM (#9236872)
I had to use that the other year whilst attempting to migrate an old old old Slackware box running on two Pentium 3s with an array of SCSI disks (so quite fancy for its time!). The machine had kernel sources that were different to the kernel running so no chance of compiling various bits of software, and I couldn't grab any GCC (EGCS?) binaries from anywhere.

I can't remember what I eventually did but I do remember discovering lynx -dump, so thanks for the reminder!

Re:Curl, 17 years old today by frabcus on Friday March 20, 2015 @07:28AM (#9237039)
I still can't stop myself typing `lynx -mime_header` to see server headers!
Re:Curl, 17 years old today by heyalexej on Friday March 20, 2015 @07:52AM (#9237111)
why not

  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 20
Re:Curl, 17 years old today by barsonme on Friday March 20, 2015 @05:02AM (#9236711)
How long have GET/POST commands been around? Probably not as long, but just curious.
Re:Curl, 17 years old today by castell on Friday March 20, 2015 @05:15AM (#9236748)
The first documented version of HTTP was HTTP V0.9 (1991) has only GET: http://www.w3.org/pub/WWW/Protocols/HTTP/AsImplemented.html

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

Re:Curl, 17 years old today by bagder on Friday March 20, 2015 @05:12AM (#9236738)
I believe they originally come from the libwww-perl project? According to wikipedia it was first released with perl 4.0036, which was in Februrary 1993, but I can't find out if it included GET and HEAD etc already then...
Re:Curl, 17 years old today by pdw on Friday March 20, 2015 @05:08AM (#9236727)
They're mentioned in a February 1996 changelog entry for libwww-perl, so at least 19 years.
Re:Curl, 17 years old today by purplezky on Friday March 20, 2015 @05:13AM (#9236740)
RFC 1945 dated may 1996 mentions GET and POST methods

http://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".

Re:Curl, 17 years old today by userbinator on Friday March 20, 2015 @07:49PM (#9241343)
I used netcat - and still do for interacting with protocols in ways that curl doesn't support. AFAIK it was released in 1995, so it's only three years older than curl.
Re:Curl, 17 years old today by w8rbt on Friday March 20, 2015 @09:52AM (#9237677)
telnet and get