有一个商城,提交订单的时候,需要在post请求的cookie中set一个code码,便于防刷

 tijiao()
{ lr_think_time(); web_reg_save_param("validcode",
"LB=validcode=",
"RB=;",
"Search=All",
LAST); web_submit_data("toSubmitOrderAjax.jsp",
"Action=http://v2.pconline.com.cn:8005//toSubmitOrderAjax.jsp?_time=1472717987749",
"Method=POST",
"RecContentType=text/html",
"Referer=http://v2.pconline.com.cn:8005//order.jsp",
"Snapshot=t279.inf",
"Mode=HTTP",
ITEMDATA,
"Name=userAddressId", "Value=21", ENDITEM,
"Name=goodsId", "Value=29262", ENDITEM,
"Name=specsId", "Value=90", ENDITEM,
"Name=count", "Value=1", ENDITEM,
LAST); lr_output_message("# 响应头信息:\n %s",lr_eval_string("{validcode}")); web_add_cookie("hyhphone=13610262187; DOMAIN=v2.pconline.com.cn"); web_add_cookie("hyhuserkey={userkey}; DOMAIN=v2.pconline.com.cn"); web_add_cookie("validcode={validcode}; DOMAIN=v2.pconline.com.cn"); web_submit_data("submitOrder.jsp",
"Action=http://v2.pconline.com.cn:8005//submitOrder.jsp",
"Method=POST",
"RecContentType=text/html",
"Referer=http://v2.pconline.com.cn:8005//order.jsp",
"Snapshot=t280.inf",
"Mode=HTTP",
ITEMDATA,
"Name=count", "Value=1", ENDITEM,
"Name=goodsId", "Value=29262", ENDITEM,
"Name=specsId", "Value=90", ENDITEM,
"Name=userAddressId", "Value=21", ENDITEM,
"Name=payType", "Value=alipay", ENDITEM,
"Name=comment", "Value=", ENDITEM,
LAST); return ;
}
04-17 19:17