Index: src/DLD-FUNCTIONS/urlwrite.cc =================================================================== RCS file: /cvs/octave/src/DLD-FUNCTIONS/urlwrite.cc,v retrieving revision 1.2 diff -u -r1.2 urlwrite.cc --- src/DLD-FUNCTIONS/urlwrite.cc 21 Feb 2007 18:19:07 -0000 1.2 +++ src/DLD-FUNCTIONS/urlwrite.cc 7 Mar 2007 12:42:36 -0000 @@ -153,6 +153,9 @@ // Set a pointer to our struct to pass to the callback. curl_easy_setopt (curl, CURLOPT_WRITEDATA, static_cast (&stream)); + // Follow redirects + curl_easy_setopt (curl, CURLOPT_FOLLOWLOCATION, 1); + curl_easy_setopt (curl, CURLOPT_NOPROGRESS, false); curl_easy_setopt (curl, CURLOPT_PROGRESSFUNCTION, progress_func); curl_easy_setopt (curl, CURLOPT_PROGRESSDATA, url.c_str ());