You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.
Several ideas I had in mind related to this (which I also find annoying):
--content-type json. not much shorter, but much nicer
Autodetection from extension when using a file (@data.json, @data.xml, etc.), which is my 90% usecase
Real autodetection is probably possible (try to parse as JSON and XML, if it doesn't error, it must be that format)
Coupling with formatters (90% of the time, the format you send is the format you expect), so -j/--json or -x/--xml might set both Content-Type and formatter
Writing all that every time is one of my grips with curl. Maybe crul could offer an alternative to that repetitiveness.
I am thinking either a special action (
curl post.json ...
) or a flag (maybe repurposing-j
for that, and creating a format flag, i.e.--format json
)The text was updated successfully, but these errors were encountered: