mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2025-02-01 21:42:31 +01:00
allow only 1 redirect when POSTing login info
This commit is contained in:
parent
53f82e5c96
commit
dab6bd937e
@ -957,10 +957,12 @@ int Downloader::HTTP_Login(const std::string& email, const std::string& password
|
||||
curl_easy_setopt(curlhandle, CURLOPT_POSTFIELDS, postdata.c_str());
|
||||
curl_easy_setopt(curlhandle, CURLOPT_WRITEDATA, &memory);
|
||||
curl_easy_setopt(curlhandle, CURLOPT_NOPROGRESS, 1);
|
||||
curl_easy_setopt(curlhandle, CURLOPT_MAXREDIRS, 1);
|
||||
curl_easy_setopt(curlhandle, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
curl_easy_perform(curlhandle);
|
||||
memory.str(std::string());
|
||||
curl_easy_setopt(curlhandle, CURLOPT_HTTPGET, 1);
|
||||
curl_easy_setopt(curlhandle, CURLOPT_MAXREDIRS, -1);
|
||||
json = this->getResponse("http://www.gog.com/user/ajax/?a=get");
|
||||
|
||||
parsingSuccessful = jsonparser->parse(json, root);
|
||||
|
Loading…
x
Reference in New Issue
Block a user