使用LR 访问https 接口
char str_titleparam[200];
web_set_sockets_option("SSL_VERSION","TLS");
web_reg_save_param_ex(
"ParamName=title_param",
"LB=\"author\":[",
"RB=\"],\"pubdate",
SEARCH_FILTERS,
LAST);
web_custom_request("web_custom_request",
"URL=https://api.douban.com/v2/book/1084121",
"Method=GET",
"TargetFrame=",
"Resource=0",
"RecContentType=application/json; charset=utf-8",
"Referer=",
"Mode=HTML",
"EncType=application/x-www-form-urlencoded; charset=UTF-8",
"Body=",
LAST);
lr_convert_string_encoding(lr_eval_string("{title_param}"),"utf-8" ,NULL,"titleparam");
// strcpy 去掉字符串后面\x00
strcpy(str_titleparam,lr_eval_string("{titleparam}"));
lr_save_string(str_titleparam,"strtitleparam");
lr_output_message("title_param value is:",lr_eval_string("{strtitleparam}"));