FlorianREGAZ / Python-Tls-Client

Advanced HTTP Library
MIT License
660 stars 136 forks source link

form data is still sent wrong. #52

Open JFuqX opened 1 year ago

JFuqX commented 1 year ago

Since version 0.1.6 > form data isn't sent right. Has anyone else experienced this kinda issue?

with the version 0.1.6 I can pass the login on a website, where form data is being sent, while when I am on a higher version than 0.1.6 I do get 403 from the page thrown.

FlorianREGAZ commented 1 year ago

Hey, can you send example code please, so I can look into it?

JFuqX commented 1 year ago

Hey sorry, actually I tested it, it doesn't seem to be the form data. It might be the headers, but idk what it can be tbh.

So apparently I use this tls_client for N1ke and it works pretty well on version 0.1.6, but every other version above this makes the login possible.

https://accounts.n1ke.com/token/v1

is the ENDPOINT that needs to be requested with some formdata in order to pass the login.

On version 0.1.6 I pass it, but above this version I get a 403 by N1ke with the respose-text Invalid CORS request, I've looked this issue up and it seem to have to do with the headers but I am not sure what exactly changed from 0.1.6 to 0.1.7 that makes this step impossible.