Action()
{
char tmp[3][16];
char myStr[3][16];
long file; //文件这边是long
file = fopen("D://Info.txt", "a+");
web_add_cookie("VisitNum=9; DOMAIN=yjsc.fjnu.edu.cn");
web_url("Train.20100112.asp",
"URL=http://yjsc.fjnu.edu.cn/queryport/Train.20100112.asp",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_url("360safeurl",
"URL=http://stat.360safe.com/360safeurl/?type=upnet&mid=0ee104be2e22b1d73b5e77381f7080b4&qn=7&es=2&ea=0&eo=0&rh0=3&rh1=2&rh2=0&rh3=0",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Mode=HTML",
LAST);
lr_think_time(14);
web_submit_data("check_outchain.php",
"Action=http://qurl.f.360.cn/check_outchain.php",
"Method=POST",
"EncType=multipart/form-data",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=urls", "Value=41e9d5f3f3ab64c3572e525f812dda13|2287c8b7f6bbba15b2b89d6fcd6597a6|f624925cd4cc4425ca52fef2f666c7d7/tnUE0pQbiY3ydp2ZhMzchqF5yMUHhL24ipKIypayjo3W0Y1ElLJyhYwVjZGNjZGRlYzSmpN==/n", ENDITEM,
"Name=src", "Value=addrbar", ENDITEM,
"Name=product", "Value=wd", ENDITEM,
"Name=combo", "Value=urlproc", ENDITEM,
"Name=v", "Value=1", ENDITEM,
"Name=vk", "Value=4dcb24e7", ENDITEM,
"Name=mid", "Value=0ee104be2e22b1d73b5e77381f7080b4", ENDITEM,
LAST);
web_reg_save_param("SID", //保存结果到变量中
"LB=<TD class=4bottomcenter>",
"RB=<",
"Ord=2", //保存第二个变量
LAST);
web_reg_save_param("major",
"LB=<TD class=4bottomright>",
"RB=<",
LAST);
web_reg_save_param("name",
"LB=<TD class=4bottomleft height=17>",
"RB=<",
LAST);
web_submit_data("Train.20100112.asp_2",
"Action=http://yjsc.fjnu.edu.cn/queryport/Train.20100112.asp",
"Method=POST",
"RecContentType=text/html",
"Referer=http://yjsc.fjnu.edu.cn/queryport/Train.20100112.asp",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=xh", "Value=2009{studentID}", ENDITEM,
"Name=imageField.x", "Value=5", ENDITEM,
"Name=imageField.y", "Value=7", ENDITEM,
LAST);
fprintf(file, "2009%s %s %s %s/n", lr_eval_string("{studentID}"), lr_eval_string("{name}"), lr_eval_string("{SID}"), lr_eval_string("{major}")); //把变量的值存于文件中
fclose(file);
return 0;
}