Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $cparams = array(
- "ssl"=>array(
- "verify_peer"=>true,
- "verify_peer_name"=>true,
- ),
- 'http' => $request['httpOptions']
- );
- $context = stream_context_create($cparams);
- $fp = fopen($request['url'], 'rb', false, $context);
- $url = EZPAY_SERVER . "/hps/webservice/ezpay/CreateSessionKey";
- $cparams = array(
- "ssl"=>array(
- "verify_peer"=>true,
- "verify_peer_name"=>true,
- ),
- 'http' => $request['httpOptions']
- );
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL,$request['url']);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS,http_build_query($cparams));
- // receive server response ...
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- $server_output = curl_exec ($ch); print_r($server_output);
- curl_close ($ch);
Add Comment
Please, Sign In to add comment