帮忙看下web_custom_request的用法错在哪里
我要post如下报文,用web_custom_request后报错,不知错在哪里,求教http://xx.xx.xx.xx/CallCenter/csr/sysfunc/OpenServiceServlet?XMLString=<?xml version="1.0" encoding="GBK"?><eb><pub><tc>L7235</tc><fr>1</fr><dt>2011-05-12</dt><tm><ws>18:45:34</ws></tm></pub><in><CHANNEL>110</CHANNEL><CALLDATA>messageName=EventAgentLogout#@@#CallUuid=null#@@#dn=31005#@@#otherDN=null#@@#connId=null#@@#transferConnId=null#@@#callType=-999#@@#agentId=290005#@@#EmulateLogin=true#@@#AgentSessionID=012GNUKOGKESNC4NAB42SCLAES0000BP#@@#managerId=020001549</CALLDATA>
<REMOTEIP>xx.xx.xx.xx</REMOTEIP></in></eb>
LR代码
web_custom_request("web_custom_request",
"URL=http://xx.xx.xx.xx/CallCenter/csr/sysfunc/OpenServiceServlet",
"Method=POST",
"TargetFrame=",
"Resource=0",
"Referer=",
"Body=?XMLString=<?xml version=\"1.0\" encoding=\"GBK\"?><eb><pub><tc>L7235</tc><fr>1</fr><dt>2011-05-12</dt><tm><ws>18:45:34</ws></tm></pub><in><CHANNEL>110</CHANNEL><CALLDATA>messageName=EventAgentLogout#@@#CallUuid=null#@@#dn={ddn}#@@#otherDN=null#@@#connId=null#@@#transferConnId=null#@@#callType=-999#@@#agentId={agentid}#@@#EmulateLogin=true#@@#AgentSessionID=012GNUKOGKESNC4NAB42SCLAES0000BP#@@#managerId={managerid}</CALLDATA>
<REMOTEIP>xx.xx.xx.xx</REMOTEIP></in></eb>",
LAST); 紧急求助啊,谢谢各位 正确的是:
web_custom_request("web_custom_request",
"URL=http://xx.xx.xx.xx/CallCenter/csr/sysfunc/OpenServiceServlet",
"Method=POST",
"TargetFrame=",
"Resource=0",
"Referer=",
"Body=?XMLString=<?xml version=\"1.0\" encoding=\"GBK\"?><eb><pub><tc>L7235</tc><fr>1</fr><dt>2011-05-12</dt><tm><ws>18:45:34</ws></tm></pub><in><CHANNEL>110</CHANNEL><CALLDATA>messageName=EventAgentLogout#@@#CallUuid=null#@@#dn={ddn}#@@#otherDN=null#@@#connId=null#@@#transferConnId=null#@@#callType=-999#@@#agentId={agentid}#@@#EmulateLogin=true#@@#AgentSessionID=012GNUKOGKESNC4NAB42SCLAES0000BP#@@#managerId={managerid}</CALLDATA>"
"REMOTEIP>xx.xx.xx.xx</REMOTEIP></in></eb>",
LAST); 你也要给个具体的错误出来吧,一般的问题就是换行导致的
页:
[1]