I’m trying to open a network connection between my audio plugin and a web server (for one-time license activation). Right now I’m using a local web stack (MAMP) for testing.
I’m using WebInputStream as follows:
WebInputStream inputStream(URL("http://localhost:8888/test.php").withPOSTData(JSON::toString(data)), true); var response = JSON::parse(inputStream.readString());
But my PHP script never receives the request. I’ve of course double checked that the URL works in a web browser, and I also successfully tested the PHP script using Postman.
I tried calling
ìnputStream.connect(), but it doesn’t make any difference.
I’m on Mac, so I also enabled the
What else could I be doing wrong?