Пытаюсь залогиниться с помощью requests на сайте
https://sslportal.tuv.com/dana-na/auth/url_3/welco...import requests
url = 'https://sslportal.tuv.com/dana-na/auth/url_3/welcome.cgi'
values = {'username': 'login',
'password': 'pass'}
r = requests.post(url, data=values)
print (r.text)
Авторизация проваливается.
Через браузер всё ок.
html блока с input'ом username и password
<blockquote><form id="frmLogin_4" name="frmLogin" action="login.cgi" method="POST" autocomplete="off" onsubmit="return Login(0)">
<input id="tz_offset_5" type="hidden" name="tz_offset">
<table id="table_LoginPage_3" border="0" cellpadding="2" cellspacing="0">
<tr>
<td nowrap colspan="3"><b>Welcome to</b></td>
</tr>
<tr>
<td nowrap colspan="3"><span class="cssLarge"><b>TEDIS application</b></span></td></tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td valign="top">
<table id="table_LoginPage_6" border="0" cellspacing="0" cellpadding="2"> <tr>
<td>Username</td>
<td> </td>
<td><input id="username" type="text" name="username" size="20"></td>
</tr> <tr>
<td>Password</td>
<td> </td>
<td><input id="password" type="password" name="password" size="20"></td>
</tr> <tr> <input id="realm_16" type="hidden" name="realm" value="DOM1"> </tr> <tr>
<td colspan="3"> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><input id="btnSubmit_6" type="submit" value="Sign In" name="btnSubmit"> <input id="help_3" type='submit' name='help' value="Help" onclick='window.open("welcome.cgi?p=help", "wndHelp", "height=400,width=500,resizeable=yes,scrollbars=yes"); return false;'></td>
</tr> </table>
</td>
<td valign="top"> </td>
<td valign="top"><table id="TABLE_LoginPage_1" border="0" cellspacing="0" cellpadding="2">
<tr><td>Please sign in to begin your secure session.<br> Further information about our <a href="https://www.tuv.com/content-media-files/world-site/pdfs/datenschutzhinweis_ext_portale.pdf">Data Protection Declaration (GDPR / DSGVO)</a> and <a href="https://www.tuv.com/de/deutschland/rechtlichehinweise/impressum_1.html">Imprint</a></tr></td></table></td>
</tr>
</table> </form>
</blockquote>