cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Please Help - Posting

From: <Kenneth.Quan_at_wellsfargo.com>
Date: Tue, 20 Jan 2004 12:00:10 -0700

You should be able to post with -F, but it's really meant for uploading
files during the post.

Try: curl -A "Mozilla/4.0" -c cookie.txt -d "username=xchris&password=XXXX"
http://ftorrent.mine.nu/index.php

Depending on the action you may/maynot want too use -L to follow location in
case it's a redirect. Either way, just play with it to see ..

-----Original Message-----
From: curl-users-admin_at_lists.sourceforge.net
[mailto:curl-users-admin_at_lists.sourceforge.net]On Behalf Of xchris
Sent: Tuesday, January 20, 2004 10:52 AM
To: curl-users_at_lists.sourceforge.net
Subject: Please Help - Posting

I cannot post correctly because variable name is not set.
How can i solve?

 curl -A "Mozilla/4.0" -c cookie.txt -F username=xchris -F password=xxxxxx
-F "submit=Log In" http://fwtorrent.mine.nu/index.php >
/home/xchris/result.html

I really don't know which parameter to pass.
Please help...

thanks a lot
bye

Here Is the output from the browser.

<form action=take-login.php method=post name=quickbox>
                  <td valign="top">
                                        <input type=hidden
value=torrents-browse.php name=returnto>
                    <div align="center">
                      <table cellspacing="1" width="100%">
                        <tbody>
                        <tr>
                          <td><font face="Verdana" size="1"
color="#FFFFFF"><b>Login veloce</b></font></td>

                        </tr>
                        <tr>
                          <td>
                            <input size=20 name=username value="Username"
style="font-family: Verdana; font-size: 8pt; color: #000000; font-weight:
bold; border-style: solid; border-width: 1px; background-color: #C9E8F7"
onfocus="this.value=''; document.quickbox.password.value='';">
                          </td>
                        </tr>
                        <tr>
                          <td>
                            <input type="password" size=20 name=password
value="Password" style="font-family: Verdana; font-size: 8pt; color:
#000000; font-weight: bold; border-style: solid; border-width: 1px;
background-color: #C9E8F7" onfocus="this.value='';">

                          </td>
                        </tr>
                        <tr>
                          <td>
                            <input type="submit" value="Log In"
style="font-family: Verdana; font-size: 8pt; color: #000000; font-weight:
bold; border-style: solid; border-width: 1px; background-color: #C9E8F7">
                          </td>

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
Received on 2004-01-20