Live data from Hacker News

Curl, 17 years old today

daniel.haxx.se

71–80 of 100 posts

Re: Curl, 17 years old today

#71
post #5

> Rough estimates say we may have a billion users already. This cannot be true by a long shot. Or am I missing something?

Depends if you're defining that as someone who has manually run a cURL command or as someone who has used an app/hardware that uses cURL "behind the scenes". If you use the latter I would say 1 billion might be a significant underestimate.

Re: Curl, 17 years old today

#72
post #52

Earlier quoted context omitted.

Anything that requires JavaScript to fetch and display content.

Yeah, building web apps this way is a fad. I predict everyone will go back to full page reloads and server-rendered content. /s

On a serious note, “progressive enhancement – still the right way”. I don't think client-side rendering is going away but everyone who's relied on it exclusively has learned the hard way that it's just too unreliable and slow to have a failure mode which is an empty page unless a lot of complex code works perfectly.

Just think about how many engineer-hours Twitter flushed with that silly #! kludge – and then when they switched back, saw an 80% improvement in page load time.

Re: Curl, 17 years old today

#74
post #52

Earlier quoted context omitted.

Anything that requires JavaScript to fetch and display content.

Yeah, building web apps this way is a fad. I predict everyone will go back to full page reloads and server-rendered content. /s

Speaking as someone who often uses text-mode browsers on the web, I wish this would actually happen.

Re: Curl, 17 years old today

#75
post #23

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.

https://shibukawa.github.io/curl_as_dsl/

Wow! Thank you, what a great project!

Re: Curl, 17 years old today

#76
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…

Sorry I stand corrected.

I stumbled upon this info when writing a redirector app recently. You're right, I should have verified that it was true.

Re: Curl, 17 years old today

#79
post #72

Earlier quoted context omitted.

Yeah, building web apps this way is a fad. I predict everyone will go back to full page reloads and server-rendered content. /s

On a serious note, “progressive enhancement – still the right way”. I don't think client-side rendering is going away but everyone who's relied on it exclusively has learned the hard way that it's just too unreliable and slow to have a failure mode which is an empty page unless a lot of complex code works perfectly. Just think about how many engineer-hours Twitter flushed with that silly #! kludge – and then when the…

> Just think about how many engineer-hours Twitter flushed with that silly #! kludge – and then when they switched back, saw an 80% improvement in page load time.

No hours were wasted, and they didn't really switch back. They're just using HTML5's History API on browsers that support it now. Essentially the same mechanism under the hood, just prettier URLs for it.

Re: Curl, 17 years old today

#80
post #52

Earlier quoted context omitted.

Anything that requires JavaScript to fetch and display content.

Yeah, building web apps this way is a fad. I predict everyone will go back to full page reloads and server-rendered content. /s

The two are not necessarily mutually exclusive, especially with JavaScript frameworks you can run on the server to render the initial page, which then gets wired up to the client-side application. i.e. "Isomorphic JavaScript" [1][2]

[1] http://nerds.airbnb.com/isomorphic-javascript-future-web-app...

[2] http://isomorphic.net/

Post reply on HN