我想通过URL将参数传递给此CGI表单(http://www.westegg.com/inflation/),所以我不必手动输入它们,以便通过其他方法生成URL意味着更快的使用。通过URL将CGI参数传递给表单
下面是从网站的CGI表单代码:
<form action="infl.cgi" method="post">
Enter the amount of money: <input name="money" type="text" size="9">
<p>
Enter the initial year (1800-2008):
<input name="first" type="text" size="4" maxlength="4">
<p>
Enter the final year (1800-2008):
<input name="final" type="text" size="4" maxlength="4" value="2007">
<p>
<center>
<input type="submit" value="Submit">
</center>
</form>
我试图通过传递参数“?”和“&”语法,但这些工作:
http://www.westegg.com/inflation/infl.cgi?money=1&first=1800&last=1900
http://www.westegg.com/inflation/infl.cgi?money="1.00"&first="1800"&last="1900"
感谢您的帮助:)
你控制'westegg.com'吗?显然,'infl.cgi'被写入处理“POST”的表单。当然,您可以使用常用工具自动化您的帖子,而不是通过在地址栏中输入信息。而且,我不确定这是否不滥用网站的资源。想想看,**你有编程问题吗?**不这么认为。 – 2010-02-19 18:56:26