TA的每日心情 | 郁闷 2015-3-16 09:01 |
---|
签到天数: 5 天 连续签到: 1 天 [LV.2]测试排长
|
8#
楼主 |
发表于 2013-9-10 14:19:41
|
只看该作者
本帖最后由 lunahaha527 于 2013-9-10 14:23 编辑
回复 7# 云层
我现在加了:
Action()
{
lr_start_transaction("ServiceReq");
web_add_header("Content-Length","342");
web_custom_request("HTTPRequest",
"URL=http://192.168.1.160:8080/pay/getToken",
"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<getToken>"
"\n<appUser>jqf_bus_api1.126.com</appUser>"
"\n<appPwd>21232F297A57A5A743894A0E4A801FC3</appPwd>"
"\n<appSign>Vf01RfaV/RXtelr5TO6l+YtHz5cdxlB1YIDi0/NBTU0/sp0QJfWN68yjCr/S/2YmbueYq8J1DOFKarMqRG4GFg==</appSign>"
"\n<billId>888</billId>"
"\n<amt>100</amt>"
"\n<currencyCode>USD</currencyCode>"
"\n</getToken>",
LAST);
lr_end_transaction("ServiceReq", LR_AUTO);
return 0;
}
日志显示为:
Starting action Action.
Action.c(8): Notify: Transaction "ServiceReq" started.
Action.c(9): Warning -26593: The header being added may cause unpredictable results when applied to all ensuing URLs. It is added anyway [MsgId: MWAR-26593]
Action.c(9): web_add_header("Content-Length") highest severity level was "warning" [MsgId: MMSG-26391]
Action.c(10): Warning -26663: Content-Length value is missing or invalid [MsgId: MWAR-26663]
Action.c(10): web_custom_request("HTTPRequest") highest severity level was "warning", 73 body bytes, 209 header bytes, 11 chunking overhead bytes [MsgId: MMSG-26387]
Action.c(28): Notify: Transaction "ServiceReq" ended with "Pass" status (Duration: 20.7967 Wasted Time: 0.6646).
问题:如上的日志是否我定义的长度有误???怎么计算这个长度呢?
web_custom_request("HTTPRequest") highest severity level was "warning", 73 body bytes, 209 header bytes, 11 chunking overhead bytes
这个错误又表明了什么呢 |
|