Last active
December 26, 2019 00:46
-
-
Save cagb80/7b52f5e8d8bbb7e482e65bf0101f3fc8 to your computer and use it in GitHub Desktop.
PHP Scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php -S localhost:8888 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment