Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Login to web site
#4
(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)
Reply


Messages In This Thread
Login to web site - by halo981 - Jan-02-2019, 07:44 AM
RE: Login to web site - by stranac - Jan-02-2019, 10:17 AM
RE: Login to web site - by halo981 - Jan-02-2019, 01:11 PM
RE: Login to web site - by snippsat - Jan-02-2019, 01:40 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020