Just Use Curl

a year ago by PhilipTheBucket to c/webdev

lens0021 8 points a year ago

I want to read more, but sadly curl is the only article on the site.

path: 0 20060628, hotness: undefined, score: 8, children: 1
PhilipTheBucket 6 points a year ago path: 0 20060628 20060755, hotness: undefined, score: 6, children: 0
FizzyOrange 6 points a year ago

Or don't. Alternatives are available - often with nicer interfaces!

IMO the main reason to use curl is that Chrome lets you copy web requests as a curl command line.

path: 0 20064285, hotness: undefined, score: 6, children: 1
victorz 5 points a year ago

I use xh. It's quite nice.

path: 0 20064285 20067703, hotness: undefined, score: 5, children: 0
30p87 5 points a year ago

I did not know that postman existed. Knowing that made my life worse.

path: 0 20060156, hotness: undefined, score: 5, children: 11
python 7 points a year ago

It's gotten even worse when they moved completely to the cloud like a year or two ago! You now can't use it without making a Postman account, and all your API collections are stored on their servers :) Absolutely no security risks here, API endpoints of in-development systems aren't a massive attack vector at all !!

We had to ban the whole tool at my company, the alternative of choice is Bruno because it's at least completely local when you install it.

path: 0 20060156 20075918, hotness: undefined, score: 7, children: 0
victorz 2 points a year ago

How so

path: 0 20060156 20067684, hotness: undefined, score: 2, children: 9
30p87 2 points a year ago

Because it's awful

path: 0 20060156 20067684 20067750, hotness: undefined, score: 2, children: 8
victorz 2 points a year ago

What makes you say that though... What specifically about it do you find awful? I prefer xh on the off times I need to test an API, but I remember sometimes it was nice to be able to save API calls as a set, like in the GUI programs.

path: 0 20060156 20067684 20067750 20075655, hotness: undefined, score: 2, children: 6
30p87 1 point a year ago

Pretty much everything said on the website... I'm a hardcore cli, max. tui user. Using electron is torture.

path: 0 20060156 20067684 20067750 20075655 20075768, hotness: undefined, score: 1, children: 3
expr 1 point a year ago

API calls can be saved as a set with curl too. It's called folders (or in my case, shell scripts where each call is a bash function).

path: 0 20060156 20067684 20067750 20075655 20076633, hotness: undefined, score: 1, children: 1
PokerChips 2 points a year ago

Kind of like Ruby on Rails

path: 0 20060156 20067684 20067750 20068506, hotness: undefined, score: 2, children: 0
brian 4 points a year ago

things like oauth, binary websockets, loads of headers, etc all are way worse in curl than others. postman is terrible but there are plenty of other gui/cli options

path: 0 20077392, hotness: undefined, score: 4, children: 0
jjjalljs 1 point a year ago

I offer a compromise of using python's requests library. It's got most of the listed benefits, but I like python better than shell scripting.

It's weird that I've been seeing job posts that list postman as a required skill. It's not great.

I did use "Bruno" for a while to have a GUI for making requests. It was fine.

path: 0 20061369, hotness: undefined, score: 1, children: 0
webdev
webdev

@programming.dev

login for more options
5875
897
526

Welcome to the web development community! This is a place to post, discuss, get help about, etc. anything related to web development

What is web development?

Web development is the process of creating websites or web applications

Rules/Guidelines

  • Follow the programming.dev site rules
  • Keep content related to web development
  • If what you're posting relates to one of the related communities, crosspost it into there to help them grow
  • If youre posting an article older than two years put the year it was made in brackets after the title

Related Communities

Wormhole

Some webdev blogs

Not sure what to post in here? Want some web development related things to read?

Heres a couple blogs that have web development related content

Credits

Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient

go to feed...