Net WebBrowser模拟Post请求
<form id="search_form" name="search_form" class="form mgr-form" method="post" action="#">
<fieldset>
<legend class="hidden"><span>更多条件</span></legend>
<table>
<tr>
<td id="df_col1" class="col1"><label for="trans_id">财付通订单号:</label></td>
<td id="df_col2" class="col2"><input type="text" class="text ime-disabled" id="trans_id" tabIndex="1" autocomplete="off" /></td>
<td class="col3"><label for="s_time">起止日期:</label></td>
<td class="col4"><span class="calendar-ctrl" id="stime_wrap"><input class="text gray short" type="text" maxlength="10" id="s_time" tabIndex="2"/><span class="ico-calendar"><!-- 日历图标 --></span></span>- <span class="calendar-ctrl" id="etime_wrap"><input class="text gray short" type="text" maxlength="10" id="e_time" tabIndex="3"/><span class="ico-calendar"><!-- 日历图标 --></span></span></td>
<td id="hdfk_col5" class="col5"><label for="opp_uin">交易对方:</label></td>
<td id="hdfk_col6" class="col6"><input type="text" class="text txt-eachother ime-disabled" id="opp_uin" tabIndex="4" autocomplete="off" /></td>
<td id="hdfk_error" class="col7 btn-wrap">
</td>
</tr>
<tr id="hdfk_hide">
<td class="col1"><label for="sp_billno">商家订单号:</label></td>
<td class="col2"><input type="text" class="text ime-disabled" id="sp_billno" tabIndex="5" autocomplete="off" /></td>
<td class="col3 js-detail-area"><label for="min_amount">金额范围:</label></td>
<td class="col4 js-detail-area"><input type="text" class="text short ime-disabled txt-money-min" id="min_amount" tabIndex="6" autocomplete="off" /><span class="sep"> - </span><input type="text" class="text short ime-disabled txt-money-max" id="max_amount" tabIndex="7" autocomplete="off" />元</td>
<td class="col5"><label for="trans_desc">关 键 字:</label></td>
<td class="col6"><input type="text" class="text ime-disabled txt-keywords" id="trans_desc" tabIndex="8" autocomplete="off" /></td>
</tr>
<tr id="more_error" class="btn-line">
<td colspan="3">
<span class="js-detail-area"><a href="https://www.tenpay.com/v2/trade/trade_mgr.shtml?isHistory=1" class="btn-history @VIEW.HISTORY@">3个月以前的交易记录</a><span class="light-gray"> | </span></span>
<span class="js-history-area hidden"><a href="https://www.tenpay.com/v2/trade/trade_mgr.shtml" class="btn-history @VIEW.RECENT@">返回最近交易查询</a><span class="light-gray"> | </span></span>
<a href="https://www.tenpay.com/cgi-bin/med/trans_manage.cgi" class="btn-history @VIEW.GOOLD@" target="_blank">查看旧版交易管理</a>
</td>
<td id="more_error_td" colspan="3">
<button type="submit" class="btn" id="btn_query" tabIndex="9">筛选</button>
<span class="form-error hide" id="err_info"><span class="ico-error-s"><!-- 错误图标 --></span>错误提示</span>
</td>
</tr>
</table>
</fieldset>
</form>
</div>
[解决办法]
有专门针对地址post和get提交数据的,你查询就知道了,很多。
[解决办法]
Post的内容是可以通过浏览器的开发者工具查看到,Chrome浏览器自带该功能,FireFox需要下载一个叫FireBug的插件来监视,IE8以上也有类似功能,没有过,不知道效果如何。