LR 测试http协议xml格式数据的服务器

来源:互联网 发布:怎么查淘宝号安全 编辑:程序博客网 时间:2024/05/29 04:26

一个简单的xml格式的http请求,后续的服务端下发没做处理,以后有机会在出个完整的脚本

直接上脚本

Action()
{


lr_start_transaction("xxxxServiceReq");
     web_custom_request("xxxxHTTPRequest",
"URL=http://xxxx/getVersion.aspx",
"Method=POST",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Mode=HTML",
"EncType=text/xml; charset=utf-8",
"Body=<?xml version=\"1.0\" encoding=\"utf-8\"?>"
                        "\n<feed>"
                        "\n<token>1999EB84FC68842398B1B4268699DC4D</token>"
                        "\n<version>1.0,10,u1268</version>"
                        "\n<plt>android</plt>"
                        "\n<channel>TEST,A1,JYJAR,JYAPP</channel>"
                        "\n<root>0</root>"
                        "\n<path>/data/app/com.juyun.socialplatform-1.apk</path>"
                        "\n<imeis>111111111111119,,00:08:22:26:ca:fb</imeis>"
                        "\n<w_h>480,320</w_h>"
                        "\n<space>0,0,232914944,78041088,209715200,11091968</space>"
                        "\n<cell>0,0,460,0</cell>"
                        "\n</feed>",
LAST);
lr_end_transaction("xxxxgServiceReq", LR_AUTO);


return 0;
}