I might get lit on fire for this, but I don't find manpages very easy to use. If want to quickly remember an option or argument order, I am met with a wall of text. Does anyone have tips for how to make it more useful? Maybe I could grep better for options? For example in the link, the author lists out common curl commands like making a POST request or adding a header. If you tried to look through the manpage for thi…
Just Use Curl
61–70 of 154 posts
Re: Just Use Curl
#62With curl I end up finding the command becomes hard to read, even taking advantage of backslashes. With Postman, it tidily hides the token out of the way on a separate tab and gets out of my way.
Re: Just Use Curl
#63Re: Just Use Curl
#64I might get lit on fire for this, but I don't find manpages very easy to use. If want to quickly remember an option or argument order, I am met with a wall of text. Does anyone have tips for how to make it more useful? Maybe I could grep better for options? For example in the link, the author lists out common curl commands like making a POST request or adding a header. If you tried to look through the manpage for thi…
function cheat() { curl cht.sh/$1 }
Then in terminal you can use the following to see the examples: $ cheat curl
Re: Just Use Curl
#65Earlier quoted context omitted.
I use both. It's quite convenient to have all the collections available and just send the request with a couple of clicks.
For repeated commands, my projects have a Make/Just file that has cURL commands I wanna validate. Sometimes I even load JSON from a tests/fixtures/*.json file, that also can be reused for other non-E2E tests. Not sure how some developers could be so allergic to the terminal, don't you already spend a lot of time there?
Re: Just Use Curl
#66I've been using curl, like forever. I don't understand the preoccupation for using postman, et. al. -- why pay for something that literally requires a little bit of light RTFM?
Using curl, how would I send a collection of frequently used requests to a coworker? Plain text file?
Works everywhere.
It could be a script or a markdown with code blocks. I believe there’s wrapper with a more codified formats like .http.
Re: Just Use Curl
#67I've been using curl, like forever. I don't understand the preoccupation for using postman, et. al. -- why pay for something that literally requires a little bit of light RTFM?
I am new to curl. We use secure connection to Visa and Maactercard API. We have the certificate in a jks file. Is there a way to send the json request that one sends in Postman but in curl while also using the jks file? Similarly, we use SoapUI to send XML requests. Is there a way to send those XML requests using curl while also using the jks file? Greatly appreciate your help.
Re: Just Use Curl
#68Curl's UX is very dated and I wouldn't recommend it to any new user. Use many alternatives like httpie [1] or something like curlie [2] which is just an UX wrapper around the same libcurl. Httpie also has a postman-like web interface. 1 - https://httpie.io/ 2 - https://rs.github.io/curlie/
Re: Just Use Curl
#69Does anyone have suggestions for when I need to use bearer auth and the token is super long? With curl I end up finding the command becomes hard to read, even taking advantage of backslashes. With Postman, it tidily hides the token out of the way on a separate tab and gets out of my way.
Re: Just Use Curl
#70> It's already on your machine, dipshit Does anyone actually enjoy this uhm style of writing?