Skip to content

Instantly share code, notes, and snippets.

@hilbix
Created July 11, 2013 15:49
Show Gist options
  • Save hilbix/5976669 to your computer and use it in GitHub Desktop.
Save hilbix/5976669 to your computer and use it in GitHub Desktop.
Dangerous PHP curl test script - mainly to test SSL reachability (60 means trouble with the SSL cert)
<?
# Warning, do not keep this publicly reachable, it is dangerous.
header("Content-type: text/plain");
$ch = curl_init($_SERVER["QUERY_STRING"]);
curl_exec($ch);
echo "-- errno: ";
echo curl_errno($ch);
curl_close($ch);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment