curl -O $1 $2
Checkmate 100line python guy!
Also, it's not immediately obvious in the various libraries how to do something right. Most python/requests examples you'll find to do that simple "download a file", for example, would run out of memory on a large file.
Sure if you want to fetch a file from the internet you could do it with one line (see the person I'm replying to);
I'd love to see the look on some of these people's faces when they find out that tool/software/whatever they use is actually using libcurl under the hood.
Good luck even getting on the internet in the first place without that router, switch, PC, modem or anything else that's also running curl/libcurl.
I don't know whether it's just my age showing, but thinking you could do anything remotely like curl in 3 days is .... well, my 1 year old probably talks more sense when he says "no".
Python dependencies (does not include curl)
https://devguide.python.org/getting-started/setup-building/i...
The "requests" module in Python (does not use curl)
that's perfect evidence that, no, a common developer cannot "re-write" curl in a few days.
No way would I run software in my car that someone hacked together in 3 days.
Your car probably wants to use some relatively pedestrian things like HTTPS, but do you think it should have any capability of doing GOPHER, SMBS, SFTP, POP3, LDAP, IMAP, TELNET, TFTP, SCP or any of the other stuff curl supports out of the box?
We can hope that the version of curl used for the car was compiled without support for some of these protocols. I don't even know if we have a good way to verify that. More likely is that whatever the stock configuration (all the protocols) is what is being used in most applications.
So no Tesla for you then.
like those 99% i never had a use for curl because wget covers all my use cases including some that curl doesn't.
but where curl is a swiss-army-knife, wget is a simple hunters or sailors knife. it cuts, and that's all it does.
everyone who complains about curl is not taking advantage of its features and should be using wget instead of complaining.
Assuming this is the "99%" usage pattern:
Then, yes.