Guest User

Untitled

a guest
Dec 26th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.51 KB | None | 0 0
  1. <?php
  2. $myCurl = curl_init();
  3. $data = array(
  4.     'saleid'=>'326422184',
  5. 'location'=>'shop_browse',
  6. 'amount'=>'42',
  7. 'internal_search'=>'',
  8. 'csrf'=>'xxxxxxxxxxxxxxx'
  9. );
  10. curl_setopt( $myCurl, CURLOPT_URL, 'https://api.opskins.com/ICart/AddToCart/v1/' );
  11. curl_setopt( $myCurl, CURLOPT_HTTPHEADER, array (
  12.  'origin: https://opskins.com',
  13.  'accept-encoding: gzip, deflate, br',
  14.  'accept-language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7',
  15.  'user-agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36',
  16.  'content-type: application/x-www-form-urlencoded; charset=UTF-8',
  17.  'accept: */*',
  18.  'referer: https://opskins.com/?loc=shop_browse&app=730_2',
  19.  'authority: api.opskins.com',
  20.  'cookie: aaaaaaaaaaa=xxxxxxxxxxxx; xxxxxxxxxxxx=aaaaaaaaaaaaaaa; aaaaaaaa=xxxxxxxxxx; aaaaaaa=xxxx',
  21.  ));
  22. curl_setopt($myCurl,CURLOPT_ENCODING, '');
  23.  
  24.  curl_setopt($myCurl, CURLOPT_FOLLOWLOCATION, true);
  25.  curl_setopt($myCurl, CURLOPT_COOKIEFILE, '');
  26.  curl_setopt($myCurl, CURLOPT_HEADER, 0);
  27.  curl_setopt($myCurl, CURLOPT_RETURNTRANSFER, 0);
  28. curl_setopt($myCurl, CURLOPT_PROXYPORT, '8000');
  29. curl_setopt($myCurl, CURLOPT_PROXY, '1.1.1.1');
  30. curl_setopt($myCurl, CURLOPT_PROXYUSERPWD, 'xxxxxxxx:xxxxxxxx');
  31. curl_setopt( $myCurl, CURLOPT_POST, 1 );
  32. curl_setopt($myCurl, CURLOPT_POSTFIELDS, $data);
  33. curl_setopt ($myCurl, CURLOPT_SSL_VERIFYPEER, 0);        
  34.  
  35. if (curl_exec ( $myCurl ))
  36.     echo 'OK!!';    
  37. else
  38.     echo 'Error curl: ' . curl_error($myCurl);
  39.  
  40. curl_close($myCurl);
  41. ?>
Add Comment
Please, Sign In to add comment