shivkanthb / curlx

◼️ Supercharge curl with history, collections and more.
https://curlx.dev
263 stars 5 forks source link

Arg improvement and improved error handling #2

Closed apm963 closed 5 years ago

apm963 commented 5 years ago

This improves error handling in a few places which are currently not being handled and causing the script to die, mostly on non-standard HTTP responses. This also fixes an issue with args that have spaces in them such as:

cx --cookie 'fullname=John Doe' ...

Which is incorrectly transformed into:

curl -i "--cookie" "fullname=John" "Doe" ...

See individual commit messages for more details.

shivkanthb commented 5 years ago

This is awesome! Thank you @apm963 🙌