Permalink
Browse files

follow location when using curl, fixes #7

  • Loading branch information...
1 parent d756860 commit b991f79a20ac0171697ce561a5b4257099266ad1 @benbalter benbalter committed Jan 5, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 class.csv-to-api.php
@@ -541,6 +541,7 @@ function curl_get( $url ) {
curl_setopt($ch, CURLOPT_TIMEOUT_MS, 1200);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
+ curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$result = curl_exec($ch);
curl_close($ch);
return $result;

0 comments on commit b991f79

Please sign in to comment.