curl-users
Can't press a non-submit button
Date: Thu, 6 Sep 2007 14:34:18 -0400
I can select an option from a pull down list:
curl --insecure -v -A "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1;.NET
CLR 2.0.50727; InfoPath.1; .NET CLR 1.1.4322)" -u MarkNet:administrator -e
https://157.184.14.68/cgi-bin/dynamic/config/gen/fax/holdingfax.html -d
1.mfp.7.13=password -d 0.mfp.7.12=2
https://157.184.14.68/cgi-bin/dynamic/config/gen/fax/holdingfax.html
>> "C:\Documents and Settings\weather\Desktop\Will's Work\Nick MFP Settings
cURL 9_07\dev\results.log"
But I am unable to go to another web page, below, make some selections and
press the "Add" "Modify" or "Delete" button. Here are my efforts:
curl --insecure -v -A "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1;.NET
CLR 2.0.50727; InfoPath.1; .NET CLR 1.1.4322)" -u MarkNet:administrator -e
https://157.184.14.68/cgi-bin/dynamic/config/gen/fax/holdingfax.html -d
0.type=1 -d 0.hour=13 -d 0.days=2 -d 101.system.configurationScheduler=Add
https://157.184.14.68/cgi-bin/dynamic/config/gen/fax/holdingfax.html >>
"C:\Documents and Settings\weather\Desktop\results.log"
curl --insecure -v -A "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1;.NET
CLR 2.0.50727; InfoPath.1; .NET CLR 1.1.4322)" -u
MarkNet:administrator -e
https://157.184.14.68/cgi-bin/dynamic/config/gen/fax/holdingfax.html
-d 0.type=1 -d 0.hour=13 -d 0.days=2&press=Add
https://157.184.14.68/cgi-bin/dynamic/config/gen/fax/holdingfax.html >>
"C:\Documents and Settings\weather\Desktop\results.log"
<TR><TD>Action</TD><TD>
<SELECT NAME="0.type">
<OPTION SELECTED VALUE="-1">----</OPTION>
<OPTION VALUE="0">Print faxes</OPTION>
<OPTION VALUE="1">Hold faxes</OPTION>
</SELECT>
</TD></TR>
<TR><TD>Time</TD><TD>
<SELECT NAME="0.hour">
<OPTION SELECTED VALUE="-1">----</OPTION>
<OPTION VALUE="0">0000</OPTION>
<OPTION VALUE="1">0100</OPTION>
<OPTION VALUE="2">0200</OPTION>
<OPTION VALUE="3">0300</OPTION>
<OPTION VALUE="4">0400</OPTION>
<OPTION VALUE="5">0500</OPTION>
<OPTION VALUE="6">0600</OPTION>
<OPTION VALUE="7">0700</OPTION>
<OPTION VALUE="8">0800</OPTION>
<OPTION VALUE="9">0900</OPTION>
<OPTION VALUE="10">1000</OPTION>
<OPTION VALUE="11">1100</OPTION>
<OPTION VALUE="12">1200</OPTION>
<OPTION VALUE="13">1300</OPTION>
<OPTION VALUE="14">1400</OPTION>
<OPTION VALUE="15">1500</OPTION>
<OPTION VALUE="16">1600</OPTION>
<OPTION VALUE="17">1700</OPTION>
<OPTION VALUE="18">1800</OPTION>
<OPTION VALUE="19">1900</OPTION>
<OPTION VALUE="20">2000</OPTION>
<OPTION VALUE="21">2100</OPTION>
<OPTION VALUE="22">2200</OPTION>
<OPTION VALUE="23">2300</OPTION>
</SELECT>
</TD></TR>
<TR><TD>Day(s)</TD><TD>
<SELECT NAME="0.days">
<OPTION SELECTED VALUE="-1">----</OPTION>
<OPTION VALUE="0">Sunday</OPTION>
<OPTION VALUE="1">Monday</OPTION>
<OPTION VALUE="2">Tuesday</OPTION>
<OPTION VALUE="3">Wednesday</OPTION>
<OPTION VALUE="4">Thursday</OPTION>
<OPTION VALUE="5">Friday</OPTION>
<OPTION VALUE="6">Saturday</OPTION>
<OPTION VALUE="7">Everyday</OPTION>
<OPTION VALUE="8">Weekdays</OPTION>
<OPTION VALUE="9">Weekends</OPTION>
</SELECT>
</TD></TR>
<TR><TD><INPUT TYPE="HIDDEN" NAME="1.id" SIZE=22 MAXLENGTH=16
VALUE=""></TD></TR>
<TR><TD><INPUT TYPE="HIDDEN" NAME="0.minute" SIZE=4 MAXLENGTH=4
VALUE="0"></TD></TR>
</TABLE><HR SIZE=2 ALIGN=LEFT WIDTH="75%" NOSHADE><TABLE>
<TR>
<TD><input TYPE="submit" NAME="101.system.configurationScheduler"
VALUE="Add"> </TD>
<TD><input TYPE="submit" NAME=" 102.system.configurationScheduler"
VALUE="Modify"> </TD>
<TD><input TYPE="submit" NAME="103.system.configurationScheduler"
VALUE="Delete Entry"> </TD>
<TD><input TYPE="submit" NAME="104.system.configurationScheduler"
VALUE="Delete List"></TD>
<TD><input TYPE="button" VALUE="Empty Form" onClick="theRandom= Math.random
();window.open('/cgi-bin/dynamic/config/shortcuts/faxholdsched.html?rand='+theRandom,'_self')"></TD>
</TR>
</FORM>
</TABLE>
<TABLE BORDER="1" WIDTH="500">
<TR><TD width=15%>Action</TD><TD width=15%>Time</TD><TD
width=15%>Day(s)</TD></TR>
<TR><TD><a HREF="
/cgi-bin/dynamic/config/shortcuts/faxholdsched.html?index=8%3A17%3A0%3A1">Hold
faxes</a></TD><TD>1700</TD><TD>Weekdays</TD></TR>
<TR><TD><a HREF="
/cgi-bin/dynamic/config/shortcuts/faxholdsched.html?index=8%3A9%3A0%3A0">Print
faxes</a></TD><TD>0900</TD><TD>Weekdays</TD></TR>
</TABLE>
</BODY></HTML>
Received on 2007-09-06