51Testing软件测试论坛

标题: web_custom_request() 函数POST的数据服务器收不到 [打印本页]

作者: YapsiLee    时间: 2012-6-20 15:14
标题: web_custom_request() 函数POST的数据服务器收不到
接口通过POST方式发送数据,以下为脚本:

        web_custom_request("call_CommonServe,App_Web_ej8opbn5.ashx_3",
                "URL=http://10.9.146.33:1020/ibookcallcenter/ajaxpro/call_CommonServe,App_Web_ej8opbn5.ashx",
                "Method=POST",
                "Resource=0",
                "RecContentType=text/plain",
                "Referer=http://10.9.146.33:1020/ibookcallcenter/call/CommonServe.aspx?guid=12312&callTel=18948164418&calledTel=89931966",
                "Snapshot=t91.inf",
                "Mode=HTTP",
                "EncType=text/plain; charset=utf-8",
                "Body={\"carIdentifier\":\"460036381852281\",\"controlType\":5,\"sim\":\"18948164418\"}",

结果,开发人员说服务器端没收到body中的请求,各位大虾,急求。。。
作者: 黑羽祭    时间: 2012-6-21 15:50
回复 1# YapsiLee
有可能是少了header,加上web_add_header试试看呢
可以使用HttpWatch查看POST的数据和header


作者: 云层    时间: 2012-6-21 17:39
只能说你抛的数据不对




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2