News for hackers. Stuff that matters.
Re:Postman Now Supports gRPC by IshKebab on Wednesday February 02, 2022 @11:16AM (#30179581)
Sounds a lot easier than curl tbh. No need to deal with shell scripts and their insane quoting, plus you get the response straight in your editor with syntax highlighting.
Re:Postman Now Supports gRPC by halpert on Wednesday February 02, 2022 @12:27PM (#30180739)
Maybe it’s just me but I’ve never had those issues. Another benefit of curl is that you have an easily searchable history of every command you’ve run. So you can easily find old invocations and rerun them.
Re:Postman Now Supports gRPC by avel on Wednesday February 02, 2022 @01:42PM (#30181939)
This extension also keeps a history of requests.

How complicated are your requests? If I need to test a POST request with a JSON payload longer than a line or two, I'll go and construct my curl command in a text editor anyway, since the shell prompt / readline is not easy to edit. Once you need to start escaping single or double quotes or html payloads in the request, it quickly gets cumbersome. At that point I ditch the shell as a middleman and use the editor to submit the request for me.

Re:Postman Now Supports gRPC by halpert on Wednesday February 02, 2022 @02:53PM (#30183071)
You can have curl read the request body from a file using --data @filename.txt.
Re:Postman Now Supports gRPC by piaste on Wednesday February 02, 2022 @04:17PM (#30184184)
Which means you've opened an editor already to edit the request. Might as well send the request right there via an editor command/plugin.
Re:Postman Now Supports gRPC by halpert on Wednesday February 02, 2022 @06:31PM (#30185817)
Or you saved the response from a different curl request, or it’s checked into git, or a million different reasons.