cURL / Mailing Lists / curl-users / Single Mail

curl-users

Problems with formfind.pl and curl

From: arturo didonna <arturo_didonna_at_yahoo.it>
Date: Thu, 30 Dec 2004 15:55:53 +0100 (CET)

Hi, everyone.
I am having problems in using the 'formfind.pl' and 'curl' programs. I was wondering if there is any kind soul willing to help me.

I am using the 'formfind.pl' program in order to extract the fields to fill for posting data by using curl.

I first captured the target page by using curl:
curl "http://www.money.net/realtime/login.php?partnerid=CBO&product=SNAP&a=" > login_cboe
Then I typed:
formfind.pl < login_cboe
and I got the following output:
--- FORM report. Uses POST to URL "/realtime/login.php"
Input: NAME="[weird]" VALUE="[weird]" (HIDDEN)
Input: NAME="[weird]" VALUE="[weird]" (HIDDEN)
Input: NAME="[weird]" VALUE="[weird]" (HIDDEN)
Input: NAME="[weird]" VALUE="[weird]" (TEXT)
Input: NAME="[weird]" VALUE="[weird]" (PASSWORD)
Select: NAME="[weird]"
  Option VALUE="[weird]" (SELECTED)
  Option VALUE="[weird]"
  Option VALUE="[weird]"
  Option VALUE="[weird]"
  Option VALUE="[weird]"
  Option VALUE="[weird]"
  Option VALUE="[weird]"
  Option VALUE="[weird]"
  Option VALUE="[weird]"
[end of select]
Input: NAME="[weird]" VALUE="[weird]" (SUBMIT)
--- end of FORM
My question is: from the web form, I can see only two fields to fill i.e.,Username and Password plus the submit botton. Instead, from the output I get from 'formdind.pl', it seems that the fields to fill are more. Could you please explain me why?
Also, do you think that would be reasonable a curl script like this to do the login:
curl -d "username=john_doe&password=my_password&SUBMIT=SUBMIT" "http://www.money.net/realtime/login.php?partnerid=CBO&product=SNAP&a="
 
Many thanks in advance.
Arturo
 
 
 

                                
---------------------------------
Nuovo Yahoo! Messenger E' molto più divertente: Audibles, Avatar, Webcam, Giochi, Rubrica… Scaricalo ora!
Received on 2004-12-30