From b54e40c87d8c80ddaa37cf15d12bf1ba2b5a3ce8 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 4 Oct 2006 10:56:35 +0000 Subject: [PATCH] - Improved download from Url (Fixed BTJunkie search engine) --- TODO | 2 +- src/downloadThread.h | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index f594a2098..9f8468e93 100644 --- a/TODO +++ b/TODO @@ -34,5 +34,5 @@ // Before 0.7.0 - Test tracker authentication - Wait for libtorrent v0.11rc release -- Test & fix search engines (especially DownloadFromUrl) +- Fix curl downloader to work with TorrentReactor engine diff --git a/src/downloadThread.h b/src/downloadThread.h index 94a644e6c..73b39104e 100644 --- a/src/downloadThread.h +++ b/src/downloadThread.h @@ -92,6 +92,16 @@ class downloadThread : public QThread { // Some SSL mambo jambo curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE); curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0); + // Disable progress meter + curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1); + // Any kind of authentication + curl_easy_setopt(curl, CURLOPT_HTTPAUTH, CURLAUTH_ANY); + // Auto referrer + curl_easy_setopt(curl, CURLOPT_AUTOREFERER, 1); + // Follow redirections + curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1); + // Enable cookies + curl_easy_setopt(curl, CURLOPT_COOKIEFILE, ""); // We want error message: char errorBuffer[CURL_ERROR_SIZE]; return_code = curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, errorBuffer);