Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
advisedwang
· 4y ago · 0 comments
Some of the replies say this is a layer violation: HTTP doesn't care about JSON so curl shouldn't either. But you have to add Content-type and Accept headers when working in JSON, which I personally often forget, so I think this does make sense.
Comments
[–]
matt_kantor
4y ago
There's also plenty of stuff like this already in curl: --aws-sigv4, --data-urlencode, --form, --metalink, --oauth2-bearer, etc.