???????????????????????LR????????????????????????????????????????????????????????
???????????
????1. ??wireshark ????????????????????????Э????????HTML?????????LR??????????????潫wireshark ???????????????.pcap?????
????2. ??LR11.5(??????????汾??????Э??)????? mobile http/htmlЭ?顣
????2.??????
????3.???????.pcap??????????????????????????????????????????????ɡ?
????4.???????????????????????????
Action()
{
web_add_cookie("QN48=tc_f39fc2c153a007a1_13c29f5c48b_90e7; DOMAIN=touch.qunar.com");
web_add_cookie("QN1=wKgZEVDwHiZ0pjsMBcTaAg==; DOMAIN=touch.qunar.com");
web_add_cookie("QN48=tc_f39fc2c153a007a1_13c29f5c48b_90e7; DOMAIN=bc.qunar.com");
web_add_cookie("QN1=wKgZEVDwHiZ0pjsMBcTaAg==; DOMAIN=bc.qunar.com");
web_url("touch.qunar.com"??
"URL=http://touch.qunar.com/"??
"Resource=0"??
"RecContentType=text/html"??
"Referer="??
"Snapshot=t1.inf"??
"Mode=HTML"??
EXTRARES??
"Url=http://bc.qunar.com/wap?utmwv=0.1&t=0.7578790553379804&utmsr=720*1280&utmr=-1&utmp=http%3A%2F%2Ftouch.qunar.com%2F&utmhn=touch.qunar.com&s=266&a=tw_index"?? ENDITEM??
LAST);
web_link("SelectFlight"??
"Text=SelectFlight"??
"Snapshot=t2.inf"??
EXTRARES??
"Url=http://bc.qunar.com/wap?utmwv=0.1&t=0.4847093583084643&utmsr=720*1280&utmr=http%3A%2F%2Ftouch.qunar.com%2F&utmp=http%3A%2F%2Ftouch.qunar.com%2Fflight.jsp%3Fbd_source%3Dqunar%26backUrl%3D%252F&utmhn=touch.qunar.com&s=254&a=tw_flightIndex"?? "Referer=http://touch.qunar.com/flight.jsp?bd_source=qunar&backUrl=%2F"?? ENDITEM??
"Url=/filghtCitySuggest.jsp?city=%25E4%25B8%258A%25E6%25B5%25B7&_=1357913752957"?? "Referer=http://touch.qunar.com/flight.jsp?bd_source=qunar&backUrl=%2F"?? ENDITEM??
"Url=/filghtCitySuggest.jsp?city=%25E6%25AD%25A6%25E6%25B1%2589&_=1357913758311"?? "Referer=http://touch.qunar.com/flight.jsp?bd_source=qunar&backUrl=%2F"?? ENDITEM??
LAST);
web_add_cookie("QN48=tc_f39fc2c153a007a1_13c29f5c48b_90e7; DOMAIN=source.qunar.com");
web_add_cookie("QN1=wKgZEVDwHiZ0pjsMBcTaAg==; DOMAIN=source.qunar.com");
web_url("flightList.jsp"??
"URL=http://touch.qunar.com/flightList.jsp?startDate=2013-01-13&backDate=2013-01-16&flightType=oneWay&bd_source=qunar&backUrl=%2Fflight.jsp%3FbackUrl%3D%252F%26bd_source%3Dqunar&startCity=%e6%88%90%e9%83%bd&destCity=%E6%AD%A6%E6%B1%89"??
"Resource=0"??
"RecContentType=text/html"??
"Referer=http://touch.qunar.com/flight.jsp?bd_source=qunar&backUrl=%2F"??
"Snapshot=t3.inf"??
"Mode=HTML"??
EXTRARES??
"Url=http://bc.qunar.com/wap?utmwv=0.1&t=0.8687613171059638&utmsr=720*1280&utmr=http%3A%2F%2Ftouch.qunar.com%2Fflight.jsp%3Fbd_source%3Dqunar%26backUrl%3D%252F&utmp=http%3A%2F%2Ftouch.qunar.com%2FflightList.jsp%3FstartDate%3D2013-01-13%26backDate%3D2013-01-16%26flightType%3DoneWay%26bd_source%3Dqunar%26backUrl%3D%252Fflight.jsp%253FbackUrl%253D%25252F%2526bd_source%253Dqunar%26startCity%3D%25E4%25B8%258A%25E6%25B5%25B7%26destCity%3D%25E6%25AD%25A6%25E6%25B1%2589&utmhn=touch.qunar.com&s=255&a="
"tw_flightList"?? "Referer=http://touch.qunar.com/flightList.jsp?startDate=2013-01-13&backDate=2013-01-16&flightType=oneWay&bd_source=qunar&backUrl=%2Fflight.jsp%3FbackUrl%3D%252F%26bd_source%3Dqunar&startCity=%e6%88%90%e9%83%bd&destCity=%E6%AD%A6%E6%B1%89"?? ENDITEM??
"Url=http://source.qunar.com/site/images/wap/touch/images/sp.v.png"?? "Referer=http://touch.qunar.com/flightList.jsp?startDate=2013-01-13&backDate=2013-01-16&flightType=oneWay&bd_source=qunar&backUrl=%2Fflight.jsp%3FbackUrl%3D%252F%26bd_source%3Dqunar&startCity=%E4%B8%8A%E6%B5%B7&destCity=%E6%AD%A6%E6%B1%89"?? ENDITEM??
"Url=http://source.qunar.com/site/images/wap/touch/images/icon.r.png"?? "Referer=http://touch.qunar.com/flightList.jsp?startDate=2013-01-13&backDate=2013-01-16&flightType=oneWay&bd_source=qunar&backUrl=%2Fflight.jsp%3FbackUrl%3D%252F%26bd_source%3Dqunar&startCity=%E4%B8%8A%E6%B5%B7&destCity=%E6%AD%A6%E6%B1%89"?? ENDITEM??
"Url=http://source.qunar.com/site/images/wap/touch/images/icon.top.png"?? "Referer=http://touch.qunar.com/flightList.jsp?startDate=2013-01-13&backDate=2013-01-16&flightType=oneWay&bd_source=qunar&backUrl=%2Fflight.jsp%3FbackUrl%3D%252F%26bd_source%3Dqunar&startCity=%E4%B8%8A%E6%B5%B7&destCity=%E6%AD%A6%E6%B1%89"?? ENDITEM??
"Url=http://source.qunar.com/site/images/wap/touch/images/icon.asc.png"?? "Referer=http://touch.qunar.com/flightList.jsp?startDate=2013-01-13&backDate=2013-01-16&flightType=oneWay&bd_source=qunar&backUrl=%2Fflight.jsp%3FbackUrl%3D%252F%26bd_source%3Dqunar&startCity=%E4%B8%8A%E6%B5%B7&destCity=%E6%AD%A6%E6%B1%89"?? ENDITEM??
LAST);
return 0;
}
????5.????????????????????????????????????????????????
??????????lr ???????????????????????????????????????????????????????????????????磺
????url=http://touch.qunar.com/flightList.jsp?startDate=2013-01-13&backDate=2013-01-16&flightType=oneWay&bd_source=qunar&backUrl=%2Fflight.jsp%3FbackUrl%3D%252F%26bd_source%3Dqunar&startCity=%e6%88%90%e9%83%bd&destCity=%E6%AD%A6%E6%B1%89"??
??????????????????????????????????get?????URL???????????????????????????????????????????????????
????????????????????ò???????????????????????????????????????????????????
??????????????
????1.?????????д?????utf-8??dll?????????????
????2.????????????????????????????????檔
??????????????????????????????????URL?????????????
?????????????????????????????????????в????????
????????????????????????????????????
?????ò????????????????LR11.5??????????????????????????????????
????C????
1 <span>Action()
2 {
3 char  DistrictName[15]={NULL}??
4         CityCode[20]={NULL}??
5         ProvinceCode[20]={NULL}??
6         DistrictCode[20]={NULL};
7 int     DistrictSequence=0;
8 web_add_cookie("JSESSIONID=6B75C5017659AA3BFB2C89746A16D20F; DOMAIN=m.weathercn.com");
9 </span>
type url??the default city code is shanghai?? you can parameterize it
????????λ??????????????????????????????????????в???????????δ????????C????
10 <span style="font-family: 'Microsoft YaHei'?????????SimHei??tahoma??arial??helvetica??sans-serif;">web_url("m.weathercn.com"??
11         "URL=http://m.weathercn.com/?cid=01012601"??
12         "Resource=0"??
13         "RecContentType=text/html"??
14         "Referer="??
15         "Snapshot=t1.inf"??
16         "Mode=HTTP"??
17         LAST);
18
19 </span>
20 <span>
21 /*select province*/
22