码迷,mamicode.com
首页 > 其他好文 > 详细

lr_字符串拼接后作为参数

时间:2015-03-09 12:36:12      阅读:183      评论:0      收藏:0      [点我收藏+]

标签:

char pre_email[4];
char email[4];
itoa(rand()%1000,pre_email,10);
strcat(pre_email,"@5.cn");
//strcpy(email,lr_eval_string(pre_email));
//lr_output_message("%s",email);
//lr_save_string(email,"vemail");

 

 

Action()
{
char email[4];
itoa(rand()%1000,email,10);
strcat(email,"@5.cn");

web_reg_save_param("emailVerifyCode",
"LB=绗簩姝ワ細杈撳叆楠岃瘉鐮乕",
"RB=]",
LAST);

web_submit_data("regist",
"Action=http://192.168.1.101:40001/dangdang/user/regist.action",
"Method=POST",
ITEMDATA,
"Name=struts.token.name","Value=struts.token",ENDITEM,
"Name=struts.token","Value=DQK2074VVSDBY236HWNT2PSRFZ963QNE",ENDITEM,
"Name=user.email","Value={email}",ENDITEM,
"Name=user.nickname","Value={email}",ENDITEM,
"Name=user.password","Value=111111",ENDITEM,
"Name=password1","Value=111111",ENDITEM,
"Name=validateCode","Value=1",ENDITEM,
LAST);

web_submit_data("verify",
"Action=http://192.168.1.101:40001/dangdang/user/verify.action",
"Method=POST",
ITEMDATA,
"Name=struts.token.name","Value=struts.token",ENDITEM,
"Name=struts.token","Value=DQK2074VVSDBY236HWNT2PSRFZ963QNE",ENDITEM,
"Name=emailVerifyCode","Value={emailVerifyCode}",ENDITEM,
LAST);

return 0;
}

lr_字符串拼接后作为参数

标签:

原文地址:http://www.cnblogs.com/stay-sober/p/4323232.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!