Here's my PHP Curl library and my public Bitbucket repo: https://bitbucket.org/Allidoiscode/pub
// GET example
die(CurlGet("http://www.google.com"));
// GET example with manual redirect location parsing
$response = CurlGet("http://www.google.com", "", "", "", "", 30, false, true);
$location =...