Невозможно войти на сайт используя библиотеку запросов - PullRequest
0 голосов
/ 15 декабря 2018
import requests
login_data = {
        'j_username': '#',
        'j_password':'#'
        }

headers = {
        'User-Agent':'Chrome/70.0.3538.110'
        }
 url ="https://alm.vodafone.com/qcbin/rest/domains/EVO/projects/EVO_Automation_New/defect"
    login_url = "https://alm.vodafone.com/qcbin/rest/domains/EVO/projects/EVO_Automation_New/defect?login-form-required=y"
    r = C.get(login_url)
    tst = C.post(login_url,params=login_data,allow_redirects=True) 
    print("------",tst.status_code)
    resp = C.get(url)
    print("Second",resp.text)
    print(resp.status_code)
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...