cURL / Mailing Lists / curl-users / Single Mail

curl-users

Use curl to submit form with java action

From: Stefano d'Antonio <kharhonte_at_gmail.com>
Date: Mon, 01 Feb 2010 18:16:10 +0100

Hi all!
I'm a new user, Stefano, i wonder how can i login to that site:
"http://www.poste.it" with curl to get my account information, i've
noticed that the site has a login page:

------------------------------------------------------------------------------------

https://www.poste.it/online/personale/login-home.fcc?TYPE=33554433&REALMOID=06-b5208d98-1e41-108b-b247-8392a717ff3e&GUID=&SMAUTHREASON=0&METHOD=GET&SMAGENTNAME=$SM$UhZIZHag%2bep4YAGCQRLKGELyK1icf0%2f8FRJgFGwWOYp1NuqkVFFUxA%3d%3d&TARGET=$SM$https%3a%2f%2fwww.poste.it%2fonline%2fpersonale%2fmyposte

------------------------------------------------------------------------------------

with that form in the html:

------------------------------------------------------------------------------------

<FORM NAME="Login" method="POST" onsubmit="javascript: return
logintest(this);">
<table cellpadding="0" cellspacing="0" style="margin-left:10px;"
summary="login utente">
<tr valign="middle">

<!--<td><label>Nome utente&nbsp;</label></td>-->
<td>
<INPUT TYPE=HIDDEN NAME=SMAUTHREASON VALUE = "0">
<INPUT TYPE=HIDDEN NAME=TARGET VALUE =
"https://www.poste.it/online/personale/myposte">
<input name=USERNAME type="text" class="inputAccedi"></td>
</tr>
<tr>
<!--<td><label>Password</label></td>-->
<td><input name=PASSWORD type="password" maxlength="10"
class="inputPassword"><!--</td>
</tr>
<tr>-->

<!--<td colspan="2"> -->
<!--<td>-->
<!-- START CONROLLI -->
<!--<div class="accesso">-->
<img src="/resources/images/common/lock.gif" alt="https sito
sicuro"><INPUT TYPE="submit" value="Accedi" class="bottone">
<!--</div>-->
<!-- END CONROLLI -->
</td>
</tr>

</table>
<input name="device_id" id="device_id" type="hidden"
value="[[[INACCESSIBLE]]]" />
</FORM>

------------------------------------------------------------------------------------

and a java function called logintest().

How can i do the login and so get information from the site?

Thanks,
Stefano
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-02-01