Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl_setopt($ch, CURLOPT_URL, "https://www.cibconline.cibc.com/ebm-anp/api/v1/json/sessions");
- //curl_setopt($ch, CURLOPT_PROXY, $proxys);
- curl_setopt($ch, CURLOPT_HEADER, 1);
- curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36');
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
- curl_setopt($ch, CURLOPT_COOKIESESSION, true);
- curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/vnd.api+json','Connection: keep-alive','Client-Type: default_web', 'X-Auth-Token: null', 'brand: cibc', 'WWW-Authenticate: CardAndExpiryDate', 'X-Requested-With: XMLHttpRequest'));
- curl_setopt($ch, CURLOPT_COOKIEJAR, '/buysub.txt');
- curl_setopt($ch, CURLOPT_COOKIEFILE, '/buysub.txt');
- curl_setopt($ch, CURLOPT_VERBOSE, 1);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
- $a = curl_exec($ch);
- // echo $a;
- if (strpos($a, '"transactionId":') !== false) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement