Permalink
Browse files
follow location when using curl, fixes #7
- Loading branch information...
Showing
with
1 addition
and
0 deletions.
-
+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