wget --post-data和检索带有结果表的页面

时间:2014-09-28 05:30:00

标签: html wget

主页链接:http://kalimatimarket.com.np/daily-price-infomation

<h1>Daily Price Information</h1><hr>
<form name="price" id="price" method="post" action=""  >
    <table>
    <tr><td> Date : </td>
        <td><input type="text" name="date" id="datepicker" class="required"></td>
    <td> Price Type : </td>
    <td><select id="pricetype" name="pricetype" class="required">
        <option value="W">Wholesale</option><option value="R">Retail</option></td>
    <td><input type="button" value="View" name="view" onclick=dlypriceview() ></td></tr>
    </table>
</form>
<div id="pricelist">
    </div>

如何以这种形式发布数据?

我的尝试

wget --post-data 'date=09/01/2014&price=post&view=1' http://kalimatimarket.com.np/daily-price-infomation -O market.html

1 个答案:

答案 0 :(得分:0)

您正试图发布错误的网址。

试试这些:

wget --post-data 'cdate=09/01/2014&pricetype=W' http://kalimatimarket.com.np/priceinfo/dlypricebulletin -O wholesale_market.html

wget --post-data 'cdate=09/01/2014&pricetype=R' http://kalimatimarket.com.np/priceinfo/dlypricebulletin -O retail_market.html