Mercurial > octave-nkf
diff src/DLD-FUNCTIONS/urlwrite.cc @ 6390:334499d75c5c
[project @ 2007-03-07 18:11:28 by jwe]
author | jwe |
---|---|
date | Wed, 07 Mar 2007 18:11:29 +0000 |
parents | de4ae354c831 |
children | 1ece41c144a6 |
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/urlwrite.cc Wed Mar 07 09:13:50 2007 +0000 +++ b/src/DLD-FUNCTIONS/urlwrite.cc Wed Mar 07 18:11:29 2007 +0000 @@ -153,6 +153,9 @@ // Set a pointer to our struct to pass to the callback. curl_easy_setopt (curl, CURLOPT_WRITEDATA, static_cast<void*> (&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 ());