I would like to log in to this site link
where your form:
<form name="frmLogin" method="post" action="validalogin.asp" >
<span>Login:</span>
<span>
<input title="Informe seu login (inclusive LETRAS e '*' quando houver)" name="usuario" type="text" size="20" maxlength="70" onFocus="limpa()">
</span>
<span>Senha:</span>
<span>
<input title="Informe a senha fornecida pelo CIEE" name="passwd" type="password" value="" size="15" maxlength="15"></span>
<br/>
<center><input type="button" value="ok" onClick="document.frmLogin.submit();" style="cursor:pointer;">
</center>
</form>
I tried the following:
import urllib
url = 'http://www.ciee.org.br/portal/LOGIN.ASP'
parametros = urllib.urlencode({'usuario':'usr', 'passwd': 'psw'})
html = urllib.urlopen(url, parametros).read()
print html
But it did not work, I think it's because of the
Can anyone help me?