Skip to content

Instantly share code, notes, and snippets.

@cagb80
Last active December 26, 2019 00:46
Show Gist options
  • Save cagb80/7b52f5e8d8bbb7e482e65bf0101f3fc8 to your computer and use it in GitHub Desktop.
Save cagb80/7b52f5e8d8bbb7e482e65bf0101f3fc8 to your computer and use it in GitHub Desktop.
PHP Scripts
$uriTest = wsURI;
$params[KeyAccess] = $soapKeyAccess;
$query = http_build_query($params);
$contextData = array (
'method' => 'POST',
'header' => "Connection: close\r\n".
"Content-Length: ".strlen($query)."\r\n",
'content'=> $query);
$context = stream_context_create (array ( 'http' => $contextData ));
$response = json_decode(file_get_contents($uriTest, false, $context));
$result[response] = $response;
php -S localhost:8888
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment