From 8b8302b4e9bf3c0f7c6dd244d0a8206d451a3099 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 31 Mar 2022 18:08:00 +0200 Subject: [PATCH] kaaaaaa --- src/S_New4.pro | 4 ++-- src/pageManager.cpp | 5 +++-- src/programManager.cpp | 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/S_New4.pro b/src/S_New4.pro index 1d775b8..522892c 100644 --- a/src/S_New4.pro +++ b/src/S_New4.pro @@ -5,8 +5,8 @@ CONFIG += -static -libstdc++ -static-libgcc #-static unix: LIBS += -lcurl #Windows -win32: LIBS += -L$${_PRO_FILE_PWD_}\..\lib\ -lcurl # 7.82.0 -#win32: LIBS += -L$${_PRO_FILE_PWD_}\..\alt\curl -lcurl # 7.64.1 +#win32: LIBS += -L$${_PRO_FILE_PWD_}\..\lib\ -lcurl # 7.82.0 +win32: LIBS += -L$${_PRO_FILE_PWD_}\..\alt\ -lcurl # 7.64.1 CONFIG += c++17 console diff --git a/src/pageManager.cpp b/src/pageManager.cpp index 8fff83c..5ed49e3 100644 --- a/src/pageManager.cpp +++ b/src/pageManager.cpp @@ -1,3 +1,4 @@ + #include "pageManager.h" PageManager::PageManager(std::string sock5ProxyOnlyAddress) @@ -115,7 +116,7 @@ Reply PageManager::getServerRequest(std::string protocol, std::string Url, bool curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); //follows redirection curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteCallback); // Funktion zum Speichern des outputs in einem string curl_easy_setopt(curl, CURLOPT_WRITEDATA, &readBuffer); //Legt die Variable readbuffer fest - curl_easy_setopt(curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:64.0) Gecko/20100101 Firefox/64.0"); + curl_easy_setopt(curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0"); if(useCookies) curl_easy_setopt(curl, CURLOPT_COOKIEFILE, cookieFilePath.c_str()); if(data != "") @@ -222,7 +223,7 @@ int PageManager::downLoadToFile(std::string filePath, std::string url) std::cout << "\33[2K\r => INFO: Es wird kein Proxy verwendet." << std::endl; //User Agent - curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:64.0) Gecko/20100101 Firefox/64.0"); + curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0"); /* write the page body to this file handle */ curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, pagefile); diff --git a/src/programManager.cpp b/src/programManager.cpp index 6977046..5c00b82 100644 --- a/src/programManager.cpp +++ b/src/programManager.cpp @@ -217,7 +217,8 @@ int ProgramManager::sucheNach_1_Serien(Settings *settings, PageManager &pageMana } else if( finds == "" ) { if(settings->debugMode) - std::cerr << ">>> Debug In " << __FUNCTION__ << ": searchModus's returnValue = '' => Nothing found!" << std::endl; + std::cerr << ">>> Debug In " << __FUNCTION__ << ": ERROR:?? searchModus's returnValue = '' => Nothing found!" << std::endl; + return NO_ERROR_BUT_EXIT_RETURN; }