Created
July 11, 2013 15:49
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
# 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