This post is by a banned member (Zentred) - Unhide
OP 31 October, 2021 - 10:56 PM
(This post was last modified: 31 October, 2021 - 11:26 PM by Zentred. Edited 2 times in total.)
Reply
https://atelier801.com/identification <- api
everytime response {"resultat":"INACTIF","message":"The page has timed out. Please try again."}
https://www.toptal.com/developers/hasteb...cid.kotlin <- the code
i can not get this to work and i have no clue !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
i am just copiyng from the network the exact request and its giving me timeout but the actual response should just login!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
This post is by a banned member (Jyxv) - Unhide
31 October, 2021 - 10:58 PM
Reply
Use the right Headers, calculate the Length and the site should not deny your Request.
Cheers,
This post is by a banned member (Zentred) - Unhide
OP 31 October, 2021 - 11:02 PM
(This post was last modified: 31 October, 2021 - 11:03 PM by Zentred. Edited 2 times in total.)
Reply
(31 October, 2021 - 10:58 PM)Jyxv Wrote: Show MoreUse the right Headers, calculate the Length and the site should not deny your Request.
Cheers,
headers and content length is copied directly from the network tab
i am fuming and crying and crying this did not work!!!!!!!!!!
This post is by a banned member (CrossPower) - Unhide
31 October, 2021 - 11:11 PM
Reply
im a retard and this is prob wrong, but for example, u have the "JSESSIONID" in the cookies as well as other stuff, mabye try to parse the jsession id and put it in the cookies as well as the other stuff
This post is by a banned member (Zentred) - Unhide
OP 31 October, 2021 - 11:25 PM
Reply
(31 October, 2021 - 11:11 PM)CrossPower Wrote: Show Moreim a retard and this is prob wrong, but for example, u have the "JSESSIONID" in the cookies as well as other stuff, mabye try to parse the jsession id and put it in the cookies as well as the other stuff
that cookie doesnt seem to change everytime i request
also nothing is returning a cookie so i cant update it
also if i remove cookie from headers its still same error so maybe it is just something with python but idk
This post is by a banned member (Whitesun789) - Unhide
01 November, 2021 - 05:01 AM
Reply
Hello! Hope you are having a good day.
Try removing :
Code: 'Referer': 'https://atelier801.com/login?redirect=https://atelier801.com/index',
==============================
Тренинг, джоинт, шипка, справа
Амфетамин, кокаин, трава
Црни Церак - Прича права
Много сереш - Пада глава
=============================
Кад једног дана умрем ... никоме нисам недостајао
✟СВЕМОЦАН✟
This post is by a banned member (Zentred) - Unhide
OP 01 November, 2021 - 11:19 AM
Reply
(01 November, 2021 - 05:01 AM)Whitesun789 Wrote: Show MoreHello! Hope you are having a good day.
Try removing :
Code: 'Referer': 'https://atelier801.com/login?redirect=https://atelier801.com/index',
that gave me 'Forbidden' response instead
This post is by a banned member (ZeroTolerance) - Unhide
01 November, 2021 - 04:19 PM
Reply
It's just the headers
Code:
import requests
req = requests.Session()
a = req.get('https://atelier801.com/login').text
token_name = a.split('<input type="hidden" name="')[5].split('"')[0]
token = a.split(f'{token_name}" value="')[1].split('"')[0]
headers1 = {
'Accept-Language': 'en-US,en;q=0.9',
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
'Referer': 'https://atelier801.com/login',
}
data = {
'rester_connecte': 'on',
'id': '[email protected]',
'pass': 'MXa8K4dGJi2BDzfWRnM1/SjTatlPDCfW2T+IQf/8Srg=',
'redirect': 'https://atelier801.com/index',
f'{token_name}': token
}
print(data)
r = req.post('https://atelier801.com/identification', headers=headers1, data=data)
print(r.text)
|