引用MSXML2.dllusing MSXML2;string strData = "v_mid=888&v_oid=19990720-888-000001234........";
XMLHTTP http = new XMLHTTP();
http.open("POST", "http://pay.beijing.com.cn/prs/user_payment.checkit", false, null, null);
http.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
http.send(strData);
if(http.status == 200)
{
//成功
string strResult = http.responseText; //取得返回串
}
else
{
//失败
}
XMLHTTP http = new XMLHTTP();
http.open("POST", "http://pay.beijing.com.cn/prs/user_payment.checkit", false, null, null);
http.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
http.send(strData);
if(http.status == 200)
{
//成功
string strResult = http.responseText; //取得返回串
}
else
{
//失败
}
http.setRequestHeader()的参数怎么理解?运行完上面的代码
我如何定位到 http://pay.beijing.com.cn/prs/user_payment.checkit
他们给出的ASP的代码可以在点了"网上安全支付平台"按钮后直接定位到另外一个url : http://pay.beijing.com.cn/prs/XXX.jsp(后面一大串参数)//贴出它的范例
<form method="post" action="http://pay.beijing.com.cn/prs/user_payment.checkit" name="E_FORM"
target="new">
<center><input type="submit" name="v_action" value="网上安全支付平台" id="Submit1"> <input type="button" name="button1" id="button1" value="返回">
</center>
<input type="text" name="v_md5info" size="100" value="<%=f%>"> <input type="hidden" name="v_mid" value="888">
</form>
POST必须加的一个固定参数
我如何定位到 Post之后的结果呢?
\">\r\n <td height=\"1\"><img src=\"/customer/gb/images/zeronew.gif\" width=\"1\" height=\"1\"></td>\r\n </tr>\r\n <tr align=\"center\">\r\n <td><b>错误提示</b></td>\r\n </tr>\r\n <tr>\r\n <td background=\"/customer/gb/images/09new.gif\" height=\"6\"><img src=\"/customer/gb/images/09new.gif\" width=\"1\" height=\"6\"></td>\r\n </tr>\r\n </table>\r\n\t\t</td>\r\n\t\t<td><img src=\"/customer/gb/images/08new.gif\" width=\"16\" height=\"30\"></td>\r\n <td colspan=\"2\" align=\"right\"><img src=\"/customer/gb/images/10new.gif\" width=\"230\" height=\"30\"></td>\r\n </tr>\r\n\t </table>\r\n\t <table width=426 height=280 cellspacing=\"0\" cellpadding=\"0\" valign=center>\r\n\t <tr align=\"center\">\r\n <td background=\"/customer/gb/images/01new.gif\">\r\n \t\t <TABLE border=\"0\" width=\"80%\">\r\n\t\t <TR>\r\n <TD width=\"100%\"> </TD>\r\n </TR>\r\n\t\t <TR>\r\n <TD width=\"100%\">错误提示:null\r\n</TD>\r\n </TR>\r\n\t </TABLE>\r\n\t\t</td>\r\n </tr>\r\n\t <tr>\r\n <td background=\"/customer/gb/images/12new.gif\" width=\"426\" height=\"3\"></td>\r\n </tr>\r\n </table>\r\n\t\t<!-- 主体右侧结束 -->\r\n\t\t</td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td colspan=\"2\" align=\"center\"><BR>建议使用IE5.0以上版本的浏览器,并升级到128位加密<br>\r\nCopyright (C)1999 - 2002 <a href=\"http://www.beijing.com.cn\" class=\"BlueShine\" target=blank>首都电子商城</a> All rights reserved. <br>\r\n<a href=\"http://www.capinfo.com.cn\" class=\"BlueShine\"
返回的string 拷贝到文本里面改成htm 也可以显示 不过有点乱 已经没有错误提示了是正确的银行选择叶面 就是好乱 而且连接不可用 (应该在他那边的服务器段运行才对的)
"而且连接不可用 (应该在他那边的服务器段运行才对的)"---- 指什么?
"网络监视器"是win2000管理工具里带的一个抓数据包的工具, 添加/删除windows组件中把它选中安装就有了
已经揭帖 特别感谢 panyee(快乐王子)
这个贴3天之内结