Skip to content

Instantly share code, notes, and snippets.

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

Embed
What would you like to do?
Enable TCP Proxy Using PHP & cURL
<?php
$ch = curl_init('https://34.233.223.241');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Host: mws.amazonservices.com'));
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.