急!!!web_custom_requestpost数据不成功
做一个系统的登录操作,关键代码如下:web_custom_request("crud_3",
"URL=http://10.136.6.99:7010/hncjb/reports/crud",
"Method=POST",
"Resource=0",
"RecContentType=text/json",
"Referer=http://10.136.6.99:7010/hncjb/pages/html/index.html",
"Snapshot=t57.inf",
"Mode=HTTP",
"EncType=multipart/form-data;charset=utf-8",
"Body={\"serviceid\":\"loadIcons\",\"target\":\"\",\"sessionid\":null,\"loginname\":\"test39\",\"password\":\"21218cca77804d2ba1922c33e0151105\",\"params\":{\"clienttype\":\"jquery\"},\"datas\":[{\"clienttype\":\"jquery\"}]}",
LAST);
首先根据server response返回的sessionid执行关联,关联代码如下:
web_reg_save_param_ex(
"ParamName=CorrelationParameter_2",
"LB=\"sessionid\":",
"RB=,",
SEARCH_FILTERS,
"Scope=Body",
"RequestUrl=*/crud*",
LAST);
回放显示关联成功,数据提交的也没错:
Action.c(477): Notify: Parameter Substitution: parameter "登录名" ="test39"
Action.c(477): Notify: Next row for parameter 密码 = 1 .
Action.c(477): Notify: Parameter Substitution: parameter "密码" ="21218cca77804d2ba1922c33e0151105"
Action.c(477): Notify: Saving Parameter "CorrelationParameter_3 = "DRPyJ3SLh1bWNvHz1kqSpzFHb81cQMvFxGHtbDgK4LmSPGpN644v!-277386645!1417105995235"".
Action.c(477): web_custom_request("crud_3") was successful, 329 body bytes, 237 header bytes, 16 chunking overhead bytes
Action.c(491): Registering web_reg_save_param_ex was successful
但是发现数据库中无test用户的登录记录,请问下我是哪个地方弄错了吗,折腾了很久还是没弄出来,急!!!! 真的急救啊!!! 顶 自己顶下,折腾了很久,别沉了啊 自己顶下,折腾了很久,别沉了啊 自己顶下,折腾了很久,别沉了啊 自己顶下,折腾了很久,别沉了啊 自己顶下,折腾了很久,别沉了啊 设置参数化,并关联,在保存脚本之后再运行,试试 你这个问题解决了没? 楼主的问题解决的吗????
页:
[1]