If you want cURL to follow redirections add this:
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); // Follow redirects
You'll want the options CURLOPT_FOLLOWLOCATION and CURLOPT_MAXREDIRS. See the manual.
CURLOPT_FOLLOWLOCATION
CURLOPT_MAXREDIRS
try
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);