cURL / Mailing Lists / curl-users / Single Mail

curl-users

Complete field and submit

From: Will Weatherford <fiveweatherfords_at_gmail.com>
Date: Wed, 21 Mar 2007 17:08:15 -0400

     I have used cURL to post a file to a web server and to retrieve a
page, but I can't figure out how to post a password to one field, post
a re-typed password to a second field and then click the submit button
with cURL. Can this be done? My bet is yes.

THIS COMMAND WILL RETRIEVE A PAGE FROM THE SERVER:
"C:\Mps02\MPSAPP\TFTPCT\curl.exe" --max-time 5
http://10.24.157.23/port_0/config/general --user -o
"C:\Mps02\MPSAPP\TFTPCT\Output\10.24.157.232007_03_05_08_10_49CurlVerify_1of7_.txt"

     This is the View Source for the page I am trying to post a
password, typed twice, and submit to:

<HTML>
        <HEAD><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8">
                <TITLE>Configuration</TITLE>
                <LINK REL="stylesheet" HREF="/configStyle.css" TYPE="text/css">
                </HEAD>
                <H3>Configuration</H3>
                <FORM ACTION="/cgi-bin/postpf/cgi-bin/dynamic/config/config.html"
METHOD="post">
                        <B>Create Password</B><TABLE>
</TABLE><HR SIZE=2 ALIGN=LEFT WIDTH="75%" NOSHADE><TABLE>
<TR><TD COLSPAN=3>Please type the new password in twice. Clear both
fields to remove the password.</TD></TR>

<TR><TD>Password</TD><TD NOWRAP><INPUT TYPE="password"
NAME="vac.255.GENPASSWORD" SIZE=22 MAXLENGTH=256 VALUE="" ></TD></TR>
<TR><TD>Re-enter password</TD><TD NOWRAP><INPUT TYPE="password"
NAME="vac.255.GENPASSWORD" SIZE=22 MAXLENGTH=256 VALUE="" ></TD></TR>

</TABLE><HR SIZE=2 ALIGN=LEFT WIDTH="75%" NOSHADE><TABLE>
<INPUT TYPE="submit" VALUE=Submit>&nbsp;&nbsp;
<INPUT TYPE="reset" VALUE="Reset Form">&nbsp;&nbsp;
</FORM>
<TR><TD COLSPAN=3> * Changing this setting will cause the print server
to reset.</TD></TR>
</TABLE><BR>
</BODY></HTML>

Any help would be appreciated.
Received on 2007-03-21