Curl User Poll
daniel.haxx.se
daniel.haxx.se
I had no idea Curl could be used for protocols other than HTTP/HTTPS.
$ curl --version
curl 7.40.0 (x86_64-apple-darwin13.4.0) libcurl/7.40.0 SecureTransport zlib/1.2.7 libidn/1.28 libssh2/1.4.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz UnixSockets Metalink
$One day, one day.
But it's a minor annoyance. Great great tool.
I could see curl being a little daunting to someone who is normally uncomfortable with the command line, but that's not really the fault of curl having a bad UI, that's more a paradigm preference of the user.
Completely agree. As a novice 15 years ago, this bugged me, especially coming from arguably simpler tools like wget. But over the years I can to appreciate how it works. And now, wget seems kinda dirty.
$ curl -s -S http://example.com/some.json | python -m json.tool
I want errors, but I don't want that annoying status bar to mess up the output. I don't use curl often enough to even remember I need two flags at all (e.g. I remember now, but didn't know when I wrote the original comment).It can follow any philosophy it wants: when a user is consistently confused, I personally consider it bad UI.
EDIT: This is not the only bad / confusing default. Another popular one is -L. Not following redirects should be the exception; I almost never want curl to choke on 3xx. Result, I could practically alias curl="curl -L". Great software, but the UI is unfortunate.
Secondly, have you ever considered that there are just as many people who might not want curl to automatically follow redirects? Personally I happen to use curl a lot to check that redirects work (eg sending the right HTTP status code) so I'd find your preference more annoying than intuitive.
Lastly, I get that you might not like some of curls default behaviours, but given curl's command structure follows the same idioms as most POSIX / GNU command line programs do, it's a bit far reached to say curls UI is bad or "unfortunate". Particularly when where's other people that do prefer the default behaviour you dislike. And since curl does follow POSIX idioms, you can just create that alias you discussed to force curl into your preferred default behaviour (you don't get much more user friendly than a tool you can customise the default behaviour of).
This is why I say that curl follows the standard CLI UI pretty well - it doesn't throw much in the way of unexpected behaviour and anything specific that you may dislike can easily be tuned via the usual methods.
Complete agree. That's why I created HTTPie[1], a modern take on CLI HTTP to address those usability issues.
~/.curlrc:
location
show-error
silent1) if you supply -q as the first switch on the command line, the curlrc file will not be used.
2) you can use -K <config_file> or --config <config_file> to pick a specific configuration.
The survey calls itself a "curl user poll" but most of the questions seem to be written as a "curl developer poll". It's actually pretty hard to convey what I think is the majority position of curl users: I use it, I'm glad it exists, and I never think about the code it contains.
https://journalxtra.com/linux/bash-linuxsanity/bash-filling-...
TL;DR
cURL can fill out forms using the "-d" option.
It's worth listening if you're at all interested in curl or popular open source projects in general.