Skip to content

Instantly share code, notes, and snippets.

@pierre-dickinson
Created February 7, 2019 22:43
Show Gist options
  • Save pierre-dickinson/499fd7ab3c3f601727e68094abf78820 to your computer and use it in GitHub Desktop.
Save pierre-dickinson/499fd7ab3c3f601727e68094abf78820 to your computer and use it in GitHub Desktop.
Proxycrawl test
<?php
/**
* TEST proxycrawl
* @link https://proxycrawl.com/dashboard/docs
* ----------------------------------------------------------------------
*/
$token = '***********************';
$url = urlencode('https://www.facebook.com/britneyspears');
$ch = curl_init();
$timeout = 60;
curl_setopt($ch, CURLOPT_URL, 'https://api.proxycrawl.com/?token='.$token.'&url=' . $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt ( $ch, CURLOPT_HEADER, false );
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$response = curl_exec($ch);
curl_close($ch);
var_dump( $response );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment