Error -27492: "HttpSendRequest" failed, Windows error code=12150 and rely limit(0) exceeded for URL
尝试过修改timeout 时间 也不行 加了web_set_sockets_option("SSL_VERSION","TLS"); 也不行
脚本如下:
web_add_header("Authorization",
"{data}");
web_add_header("Accept","*/*");
web_add_header("Accept-Encoding","gzip, deflate, br");
web_add_header("Cache-Control","no-cache");
web_add_header("Connection","keep-alive");
web_add_header("content-type","application/json");
web_reg_find("Search=Body","Text={","SaveCount=count",LAST);
web_reg_save_param("result",
"LB=",
"RB=",
LAST);
web_set_sockets_option("SSL_VERSION","TLS");
lr_start_transaction("list");
web_custom_request("list",
"URL=https://staffing-ts.wetax.com.cn/webapp/api/Task/getlist?page_index=1&page_size=15",
"Method=Get",
"RecContentType=text/html",
"Mode=Http",
LAST);
lr_convert_string_encoding(lr_eval_string("{result}"),"utf-8",NULL,"my");
lr_message ("value: %s",lr_eval_string("{my}"));
if(atoi(lr_eval_string("{count}"))>0){
lr_output_message("成功");
lr_end_transaction("list", LR_PASS);
}else{
lr_output_message("失败");
lr_end_transaction("list", LR_FAIL);
}