Action()
{
lr_save_string("http://member.alisoft.com:30080/member/ugs?action=check_status","to_url");
web_convert_param("to_url", "SourceEncoding=HTML", "TargetEncoding=URL", LAST);
//web_convert_param这个函数完成url encode功能。
web_reg_save_param("Content","LB=","RB=",LAST);
web_reg_find("Text=OK","Search=All",LAST);
web_url("member.alisoft.com",
"URL=http://member.alisoft.com:30080/member/im?uid={loginId}&loginid={loginId}&token=abcdefghijklmn&imver=6.00.00&url={to_url}",
LAST);
return 0;
}
{
lr_save_string("http://member.alisoft.com:30080/member/ugs?action=check_status","to_url");
web_convert_param("to_url", "SourceEncoding=HTML", "TargetEncoding=URL", LAST);
//web_convert_param这个函数完成url encode功能。
web_reg_save_param("Content","LB=","RB=",LAST);
web_reg_find("Text=OK","Search=All",LAST);
web_url("member.alisoft.com",
"URL=http://member.alisoft.com:30080/member/im?uid={loginId}&loginid={loginId}&token=abcdefghijklmn&imver=6.00.00&url={to_url}",
LAST);
return 0;
}
本文介绍了一段用于处理网页请求及参数转换的代码示例,通过使用特定函数完成URL编码,并保存页面内容,最终实现了对指定URL的有效访问。
165

被折叠的 条评论
为什么被折叠?



