May-22-2018, 07:58 AM
Hi,
I'm trying to connect to a website with requests library.
This is my code :
Did I forgot something ?
Here are informations I sent when I submit form.
![[Image: 180522100614516744.png]](https://nsa39.casimages.com/img/2018/05/22/180522100614516744.png)
Thanks for your help
I'm trying to connect to a website with requests library.
This is my code :
import requests url = 'http://www.website.com' values = { 'loginForm': 'loginForm', 'loginForm:login': '', 'loginForm:password': '', 'loginForm:submit': 'Valider', 'javax.faces.ViewState': 'j_id2' } with requests.Session() as s: response = s.post(url, data=values) print(response.text)When i'm executing this one, it will redirect me at the same page, login form. I don't know why.
Did I forgot something ?
Here are informations I sent when I submit form.
![[Image: 180522100614516744.png]](https://nsa39.casimages.com/img/2018/05/22/180522100614516744.png)
Thanks for your help
