2014-09-28 28 views
0

主要頁面的鏈接:http://kalimatimarket.com.np/daily-price-infomationwget的--post數據與結果表retrive頁

<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> 

如何在這個表單POST數據?

我嘗試

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

回答

0

您試圖郵寄到錯誤的URL。

嘗試這些:

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