Hacker News new | ask | show | jobs
by tombert 1060 days ago
Does curl support websockets?

It might, but I think the appeal of Postman is how straightforward it is to play with APIs across basically anything in the HTTP stack, with a nice GUI. Also, I thought Postman also had the ability to export your queries to curl if you want to need to use it outside Postman.

1 comments

It does, but the support is not great. There’s active work to make it better. We don’t use WebSockets so that might be why my colleagues didn’t have too much attachment to postman. We have a list of bash functions we import into our zshrc/bashrc that just wrap around curl with some parts pre-filled and automatically grabbed creds from ENV as needed. It’s a better workflow since you don’t need to switch applications and you can chain calls together with some glue.