News for hackers. Stuff that matters.
Re:Show HN: I created Postwoman, an online, open-source API ... by dalbotex on Wednesday August 28, 2019 @03:49AM (#20817752)
Don't CORS restrictions basically render this whole tool useless?
Re:Show HN: I created Postwoman, an online, open-source API ... by jamessb on Wednesday August 28, 2019 @04:45AM (#20817999)
It seems the user created this because they thought that Postman required too many resources as an Electron app.

I'm not sure why they didn't just use a commandline tool (e.g. httpie [1]) that would work with any API, rather than just those with permissive CORS headers.

[1]: https://httpie.org/

Re:Show HN: I created Postwoman, an online, open-source API ... by batoure on Wednesday August 28, 2019 @06:03AM (#20818308)
So Postman used to be a lightweight Chrome plugin. Then its developers turned it into an electron app with lots and lots and lots of features. They did this as a vehicle to begin offering paid features and enterprise plans.

To your second point, despite years of writing Curl some times its nice to have an interface and for some people that is their personal preference.

Re:Show HN: I created Postwoman, an online, open-source API ... by jannes on Wednesday August 28, 2019 @06:22AM (#20818399)
Another reason why they moved to Electron may be that Google announced [0] in 2016 that they will discontinue Chrome Apps (outside of Chrome OS).

[0]: https://blog.chromium.org/2016/08/from-chrome-apps-to-web.ht...

Re:Show HN: I created Postwoman, an online, open-source API ... by lol768 on Wednesday August 28, 2019 @04:13AM (#20817846)
I suppose it's useful for APIs with permissive CORS headers. Maybe there's also some way to run it locally as a separate app with SOP disabled?

Maybe something like:

  $ chromium-browser --disable-web-security --user-data-dir="/tmp" --kiosk https://liyasthomas.github.io/postwoman/
Unrelated, meta note: why does indiehackers need a separate interstitial splash screen, visible for ~4-5 seconds to load a simple article page?
Re:Show HN: I created Postwoman, an online, open-source API ... by oauea on Wednesday August 28, 2019 @12:02PM (#20821052)
Then you're launching a second chromium instance and practically recreating Electron.
Re:Show HN: I created Postwoman, an online, open-source API ... by lol768 on Wednesday August 28, 2019 @04:28PM (#20823675)
Yes, indeed. Sort of defeats the point of Postwoman being more performant..

Still, this seems safer than the various extensions that have been recommended in order to disable the SOP. I'd rather the user's data wasn't on the line.

Re:Show HN: I created Postwoman, an online, open-source API ... by oauea on Thursday August 29, 2019 @04:08AM (#20827666)
Right, so I don't see any reason why I would ever want to use this tool when far superior alternatives (like postman) exist.
Re:Show HN: I created Postwoman, an online, open-source API ... by ge96 on Wednesday August 28, 2019 @04:21AM (#20817878)
load balancer /s
Re:Show HN: I created Postwoman, an online, open-source API ... by losvedir on Wednesday August 28, 2019 @07:23AM (#20818676)
I use Postman a fair bit, and looking through my history it's mostly playing with 3rd party APIs to see what format they return and how they respond to query params and such. So it works for that purpose, since those generally won't have CORS restrictions.

It probably won't work for testing of your own API endpoints for, say, a SPA, though, which is likely to have CORS. But for local testing where I control the backend, I mostly just rely on printing responses to the terminal anyway.

Re:Show HN: I created Postwoman, an online, open-source API ... by Vogtinator on Wednesday August 28, 2019 @03:58AM (#20817787)
It indeed seems to be totally broken.
Re:Show HN: I created Postwoman, an online, open-source API ... by ch_sm on Wednesday August 28, 2019 @06:00AM (#20818295)
it could proxy the requests through a server.
Re:Show HN: I created Postwoman, an online, open-source API ... by jacobush on Wednesday August 28, 2019 @04:10AM (#20817834)
I don't understand. Plus it has 1700 stars on github.
Re:Show HN: I created Postwoman, an online, open-source API ... by coldtea on Wednesday August 28, 2019 @07:48AM (#20818807)
What exactly is there to "understand"?
Re:Show HN: I created Postwoman, an online, open-source API ... by ge96 on Wednesday August 28, 2019 @04:22AM (#20817879)
~~Does Postman work with JS? I've used it with Python.~~

Oh nvm I'm thinking of a different service