PHP post request to retrieve JSON
- by Brian
I'm trying to write some simple php code that will make a post request and then retrieve a JSON result from the server.
It seemed simple to me, but the below code simply doesn't open a connection.
$port = 2057;
$path = "/validate/";
$request = "value1=somevalue&value2=somevalue&value3=somevalue";
$http_request = "POST $path…