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)