Paste Search Dynamic
Recent pastes
supported coins
  1. <?php
  2.  
  3. $ch = curl_init();
  4.  
  5. curl_setopt($ch, CURLOPT_URL, 'https://www.coinpayments.net/supported-coins');
  6. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  7. curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
  8.  
  9. curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
  10.  
  11. $headers = array();
  12. $headers[] = 'Authority: www.coinpayments.net';
  13. $headers[] = 'Sec-Ch-Ua: "Chromium";v="94", "Google Chrome";v="94", ";Not A Brand";v="99"';
  14. $headers[] = 'Sec-Ch-Ua-Mobile: ?0';
  15. $headers[] = 'Sec-Ch-Ua-Platform: "Windows"';
  16. $headers[] = 'Upgrade-Insecure-Requests: 1';
  17. $headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36';
  18. $headers[] = 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9';
  19. $headers[] = 'Sec-Fetch-Site: same-origin';
  20. $headers[] = 'Sec-Fetch-Mode: navigate';
  21. $headers[] = 'Sec-Fetch-User: ?1';
  22. $headers[] = 'Sec-Fetch-Dest: document';
  23. $headers[] = 'Referer: https://w...content-available-to-author-only...s.net/help-faq';
  24. $headers[] = 'Accept-Language: en-US,en;q=0.9';
  25. $headers[] = 'Cookie: CPTC=03bb711d4aec9e59488c9de4eb1ecea9; PHPSESSID=qpco377eupmnse1hs2tuovnoi5';
  26. curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  27.  
  28. $result = curl_exec($ch);
  29. if (curl_errno($ch)) {
  30.     echo 'Error:' . curl_error($ch);
  31. }
  32. curl_close($ch);
  33. preg_match_all('@<div class="table-label">(.*?)</div>@si',$result,$return);
  34. echo "<pre>";
  35. var_dump($result);
  36. echo "</pre>";
  37.  
  38. ?>
Parsed in 0.026 seconds