Skip to content

Instantly share code, notes, and snippets.

@tormi
Forked from bmcbride/proxy.php
Created December 4, 2016 18:49
Show Gist options
  • Save tormi/d4c6f20b9569ab5d9a41ac34e525a83f to your computer and use it in GitHub Desktop.
Save tormi/d4c6f20b9569ab5d9a41ac34e525a83f to your computer and use it in GitHub Desktop.
Simple PHP proxy
<?php
$ch = curl_init($_GET['url']);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
echo $output;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment