|
要测微信公众号上面的一个请求页面接口下面是post接口的url http://weixin.mati.cn/wx/WXGetRe ... mp;nonce=1091465442
下面是xml请求的数据
<xml><ToUserName><![CDATA[gh_beb33827e7a6]]></ToUserName>
<FromUserName><![CDATA[oYl74joqd8CDu0dUI_FjW5MsiY4g]]></FromUserName>
<CreateTime>1436432358</CreateTime>
<MsgType><![CDATA[event]]></MsgType>
<Event><![CDATA[VIEW]]></Event>
<EventKey><![CDATA[file:///C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\%W@GJ$ACOF(TYDYECOKVDYB.pnghttp://weixin.mati.cn/wx/carwz/mycarlist.aspx]]></EventKey> </xml>
请问怎么写脚本
以下是我写的脚本
Action()
{
lr_rendezvous("jiekou");
lr_start_transaction("cc");
web_submit_data("default.aspx",
"Action=http://weixin.mati.cn/wx/WXGetRequest.aspx?signature=1ecbf76f86f0f4045ffc79476c97b1e769b48b6b×tamp=1436313611&nonce=1091465442",
"Method=POST",
"TargetFrame=",
"RecContentType=text/xml",
"Mode=HTML",
ITEMDATA,
"Name=ToUserName", "Value=![CDATA[gh_beb33827e7a6]]", ENDITEM,
"Name=FromUserName", "Value=![CDATA[oYl74joqd8CDu0dUI_FjW5MsiY4g]]", ENDITEM,
"Name=CreateTime", "Value=1436432358", ENDITEM,
"Name=MsgType", "Value=![CDATA[event]]", ENDITEM,
"Name=Event", "Value=![CDATA[VIEW]]", ENDITEM,
"Name=EventKey", "Value=![CDATA[http://weixin.mati.cn/wx/carwz/mycarlist.aspx]", ENDITEM,
LAST );
lr_end_transaction("cc", LR_AUTO);
return 0;
}
这样对吗
|
|