Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $host = 'https://secure5.tranzilla.com/31.cgi';
- $params = array(
- 'supplier' => 'Supplier',
- 'sum' => '10.00',
- 'price' => '5.00',
- 'cname' => 'Product',
- 'city' => 'Street',
- 'zipCode' => '332311',
- 'email' => 'example@example.com',
- 'cardNum' => '9999999999',
- 'eYear' => '2015',
- 'eMonth' => '2015',
- 'first_name' => 'First Name',
- 'supplier' => 'SUPPNUMBER'
- );
- try
- {
- $curl= curl_init();
- curl_setopt($curl, CURLOPT_URL, $host);
- curl_setopt($curl, CURLOPT_POST, 1);
- curl_setopt($curl, CURLOPT_FAILONERROR, true);
- curl_setopt($curl, CURLOPT_POSTFIELDS, $params);
- curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
- $result = curl_exec($ch);
- curl_close($curl);
- $error = curl_error($curl_connection);
- if ( ! empty($error)) { die($error); }
- }
- catch (ErrorException $e)
- {
- die($e->getMessage());
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement