Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!



 1963

i can just not get this request to work!!!!!!!!!!!!!

by Zentred - 31 October, 2021 - 10:56 PM
This post is by a banned member (Zentred) - Unhide
Zentred  
Infinity
617
Posts
124
Threads
4 Years of service
#1
(This post was last modified: 31 October, 2021 - 11:26 PM by Zentred. Edited 2 times in total.)
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
This post is by a banned member (Zentred) - Unhide
Zentred  
Infinity
617
Posts
124
Threads
4 Years of service
#3
(This post was last modified: 31 October, 2021 - 11:03 PM by Zentred. Edited 2 times in total.)
(31 October, 2021 - 10:58 PM)Jyxv Wrote: Show More
Use 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
1.050
Posts
113
Threads
5 Years of service
#4
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
Zentred  
Infinity
617
Posts
124
Threads
4 Years of service
#5
(31 October, 2021 - 11:11 PM)CrossPower Wrote: Show More
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

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
27
Posts
0
Threads
3 Years of service
#6
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
Zentred  
Infinity
617
Posts
124
Threads
4 Years of service
#7
(01 November, 2021 - 05:01 AM)Whitesun789 Wrote: Show More
Hello! 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
148
Posts
19
Threads
4 Years of service
#8
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)

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)