by abritishguy · 12y ago · 0 comments
I would really be happy if there is any tool which give option "Copy as curl" !
(would give - curl 'https://news.ycombinator.com/news.css?Iufnib6nCakqGh6wo0m6' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36' --compressed )
There's still a wide market for GUI based programs, and Postman is an excellent extension that I've used for years (even though I'm a CLI guy myself). It's always there, easy to use, and powerful to boot.
Edit 1: Grammar / Spelling
> There are lots of things that you can do easily with postman but would be difficult with a CLI tool.
the jury is still out on this one. i'm not buying it now either. you've convinced me Postman is easier for non-technical people, but i'm not convinced it's more useful or easier than a command line.
> What do I do?
Install the extension and use postman easily.
All of those would be eliminated with preparation and planning. And the results would be better quality than ad hoc poking with Bash
I would still like an example of a series of Http:// requests that is "difficult" to do with just curl, wget and a bit of shell script.
For more advanced or one off testing, curl would still be my go to.
Taking that into consideration, Postman's web interface lets you
- See all the request history that you can easily reply any of them with one click
- Save requests and share them (including a collection of requests)
- Have and share environment variables to change, for example, between production and development API urls, password, params, etc (I know, a CLI also lets you do that, but it soooo simple to just select and preview the environment variables from the list)
- easily handle oAuth and other authentication forms out of the box
But you will suffer (a lot) trying to use Postman to - Handle binary input/outputs
- Stream responses
- Handle cookies
So, depending on what your day to day problems are you should use a different tool... Oh, and I didn't know about HTTPie, thanks for sharing :)