Live data from Hacker News

Curl, 17 years old today

daniel.haxx.se

31–40 of 100 posts

Re: Curl, 17 years old today

#32
post #19
post #17

And 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…

I love aria2c

I use it all the time even as the down loader for ArchLinux's pacman (package manager).

Re: Curl, 17 years old today

#35

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

Similarly you can right-click and "Copy as cURL" from the Network pane of Firefox's web developer tools.

Re: Curl, 17 years old today

#39
post #34

Earlier quoted context omitted.

`lynx -dump` was a very useful tool.

I still can't stop myself typing `lynx -mime_header` to see server headers!

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

#40
post #28

> "If it doesn't load through curl, it's broken." --someone So, so true. Thanks, curl.

That's pretty much my own test for a Web based API - if I can drive it from the command line using curl then great, if I can't then it's broken.
Post reply on HN