Skip to content

Instantly share code, notes, and snippets.

@islandskater43 islandskater43/sample.php Secret
Created Nov 21, 2017

What would you like to do?
Enable TCP Proxy Using PHP & cURL
$ch = curl_init('');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Host:'));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
$errors = curl_error($ch);
$response = curl_getinfo($ch, CURLINFO_HTTP_CODE);
echo $response;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.