'problem with python requests response, a different answer in the browser and another in the requirement
I am trying to send a request to log in at https://account.efortuna.pl/login when I send the request, I get the answer: You can't because you have exceeded the login limit error code 3, in the browser, when entering the same data, an error about incorrect login data error code 2, I don't know why I get a different answer in the query.
import json
import time
s = requests.Session()
params = {
'casinoname': 'efortuna.pl',
'realMode': '1',
'serviceType': 'GamePlay',
'clientType': 'sportsbook',
'clientPlatform': 'web',
'clientVersion': '10H',
'clientSkin': 'efortuna.pl',
'deliveryPlatform': 'Hub2',
'deviceType': 'other',
'osName': 'windows',
'osVersion': '10',
'deviceBrowser': 'chrome',
'languageCode': 'pl',
#'redirectUrl': 'https://www.efortuna.pl/#requestId=',
'messagesSupported': '1'
}
payload = {
'username': 'myusername',
'password': 'mypassword',
'eventOrigin': 'https://www.efortuna.pl',
'hr': 'https://account.efortuna.pl/',
'requestsType': 'LoginAndGetTempToken',
'responseType': 'json'
}
s.get("https://account.efortuna.pl/login")
res = s.post('https://login.efortuna.pl/LoginAndGetTempToken.php', json=payload, data=params, verify=False)
print(res.content)
RESPONSE IN BROWSER: errorCode: 2 playerMessage: "Invalid nickname or password. Please contact [email protected] customer service for assistance"
RESPONSE IN PYTHON REQUESTS errorCode: 3 playerMessage: "You cannot log in because you have timed out."
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
