I'm surprised it's so new. And wget is only a year older... what did people use before then?
Curl, 17 years old today
21–30 of 100 posts
Re: Curl, 17 years old today
#22I'm surprised it's so new. And wget is only a year older... what did people use before then?
$ 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
#23I love curl so much. I just learned that you can 'copy to curl command' from the chrome inspector's network panel by right clicking on any request!! I want to make a library that reads the curl command (and maybe request syntax?) and outputs a function that will do that command.
Re: Curl, 17 years old today
#24I'm surprised it's so new. And wget is only a year older... what did people use before then?
`lynx -dump` was a very useful tool.
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
#25I love curl so much. I just learned that you can 'copy to curl command' from the chrome inspector's network panel by right clicking on any request!! I want to make a library that reads the curl command (and maybe request syntax?) and outputs a function that will do that command.
curl has a --libcurl option which you can add to a curl command line, and then it'll generate a libcurl-using C code template for that same operation...
Re: Curl, 17 years old today
#26And still better than wget, which only does http 1.0 and this has problems due to lacking a 'host' header. Curl just works.
> And still better than wget, which only does http 1.0 and this has problems due to lacking a 'host' header. Well I had to check, but this is not true at all: $ nc -l -p 9999 GET / HTTP/1.1 User-Agent: Wget/1.15 (linux-gnu) Accept: */* Host: localhost:9999 Connection: Keep-Alive Also wget can recursively mirror webpages and there are nice options to carefully select contents you want to download. It's quite dated tho…
Re: Curl, 17 years old today
#27I'm surprised it's so new. And wget is only a year older... what did people use before then?
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
#28So, so true. Thanks, curl.
Re: Curl, 17 years old today
#29I'm surprised it's so new. And wget is only a year older... what did people use before then?
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.
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
#30And still better than wget, which only does http 1.0 and this has problems due to lacking a 'host' header. Curl just works.