Jan-02-2019, 01:40 PM
(Jan-02-2019, 01:11 PM)halo981 Wrote: I don't understand the issue related to the "submit" into the data.Have to look what send as Form Data as mention bye @stranac.
submit
is not send,but language is.Try:
import time import requests from lxml import html from bs4 import BeautifulSoup headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36'} params = {'j_username': 'myusername', 'j_password': 'mypassword', 'language': 'it'} login_url = "https://ec.gbgroup.it/orderentry/login.action" with requests.Session() as session: #For testing purposes is removed the Certificate verification result = session.post(login_url, headers=headers, params=params, verify=False)