1. 程式人生 > >LR中變量、參數的使用介紹

LR中變量、參數的使用介紹

sage 請求 www. AC action aid 通過 AR strcpy

Action()
{
char * url = "www.baidu.com";
char arr_url[1024];

//將url變量的值復制給p_url1參數
lr_save_string(url,"p_url");

//將p_url1參數的值復制給arr_url變量
strcpy(arr_url,"URL=http://");
strcat(arr_url,lr_eval_string("{p_url}"));


lr_output_message("通過獲取參數的值的方式發送請求");
web_url("webtours",
"URL=http://{p_url}",
LAST
);

lr_output_message("通過獲取變量的值的方式發送請求");
web_url(
"webtours",
arr_url,
LAST
);

return 0;
}

LR中變量、參數的使用介紹