|
5#
楼主 |
发表于 2008-8-29 15:07:39
|
只看该作者
原帖由 云层 于 2008-8-29 14:55 发表
把服务器返回和你的关联函数贴出来,应该是你的关联边界设置的不好导致没有抓到合适的关联参数
web_reg_save_param("OrderId", "LB=<span id=\"salenumber\">", "RB=</span>","NotFound=ERROR",LAST);
web_submit_data("sale.do_2",
"Action=https://democoe.verican.us/cod6/sale.do?catalog=demo",
"Method=POST",
"RecContentType=text/html",
"Referer=https://democoe.verican.us/cod6/sale.do?catalog=demo",
"Snapshot=t11.inf",
"Mode=HTTP",
ITEMDATA,
"Name=paymentType", "Value=Visa", ENDITEM,
"Name=creditCardNumber", "Value=1111111111111111", ENDITEM,
"Name=expiredmonth", "Value=03", ENDITEM,
"Name=expiredYear", "Value=2020", ENDITEM,
"Name=company", "Value=", ENDITEM,
"Name=titleInDepartment", "Value=", ENDITEM,
"Name=street", "Value=aaa", ENDITEM,
"Name=city", "Value=beijing", ENDITEM,
LAST);
web_add_cookie("__utmb=178850353.16.10.1219906892; DOMAIN=democoe.verican.us");
web_concurrent_start(NULL);
web_url("cod.js_7",
"URL=https://democoe.verican.us/cod6/statics/common/js/cod.js?ver=c15",
"Resource=1",
"RecContentType=text/javascript",
"Referer=https://democoe.verican.us/cod6/sale.do?catalog=demo&view=true&sale=100908064",
LAST);
web_url("common.css_7",
"URL=https://democoe.verican.us/cod6/statics/common/css/common.css?ver=c115",
"Resource=1",
"RecContentType=text/css",
"Referer=https://democoe.verican.us/cod6/sale.do?catalog=demo&view=true&sale=100908064",
LAST);
web_url("default.css_7",
"URL=https://democoe.verican.us/cod6/statics/common/css/default.css?ver=c168",
"Resource=1",
"RecContentType=text/css",
"Referer=https://democoe.verican.us/cod6/sale.do?catalog=demo&view=true&sale=100908064",
LAST);
web_url("prototype.js_7",
"URL=https://democoe.verican.us/cod6/statics/common/js/prototype.js?ver=c11",
"Resource=1",
"RecContentType=text/javascript",
"Referer=https://democoe.verican.us/cod6/sale.do?catalog=demo&view=true&sale=100908064",
LAST);
web_url("scriptaculous.js_7",
"URL=https://democoe.verican.us/cod6/statics/common/lightbox/js/scriptaculous.js?load=effects&ver=c11",
"Resource=1",
"RecContentType=text/javascript",
"Referer=https://democoe.verican.us/cod6/sale.do?catalog=demo&view=true&sale=100908064",
LAST);
web_url("lightbox.css_7",
"URL=https://democoe.verican.us/cod6/statics/common/lightbox/css/lightbox.css?ver=c11",
"Resource=1",
"RecContentType=text/css",
"Referer=https://democoe.verican.us/cod6/sale.do?catalog=demo&view=true&sale=100908064",
LAST);
web_url("lightbox.js_7",
"URL=https://democoe.verican.us/cod6/statics/common/lightbox/js/lightbox.js?ver=c11",
"Resource=1",
"RecContentType=text/javascript",
"Referer=https://democoe.verican.us/cod6/sale.do?catalog=demo&view=true&sale=100908064",
LAST);
web_url("jquery.js_7",
"URL=https://democoe.verican.us/cod6/statics/common/js/jquery.js?ver=c11",
"Resource=1",
"RecContentType=text/javascript",
"Referer=https://democoe.verican.us/cod6/sale.do?catalog=demo&view=true&sale=100908064",
LAST);
web_url("logo.gif_6",
"URL=https://democoe.verican.us/fms/images/catalogs/demo/logo.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=https://democoe.verican.us/cod6/sale.do?catalog=demo&view=true&sale=100908064",
LAST);
web_concurrent_end(NULL);
在那个页面上,view source 有:<th><h3>Order #<span id="salenumber">1404</span></h3></th>
我想取到1404这个值作为参数OrderId。还需要贴其他代码吗? |
|