There is a web page, there is a traffic data, if I use a browser to open, this number will add 1, But if I use The Set xmlHttp=CreateObject (" MSXML2. XmlHttp ") 'send request XmlHttp. Open "GET", strURL, True
XmlHttp. SetRequestHeader "Host", "" XmlHttp. SetRequestHeader "Connection", "keep alive - "XmlHttp. SetRequestHeader "Accept", "*/* "XmlHttp. SetRequestHeader "Referer", "http://www.sgs.gov.cn/lz/etpsInfo.do? Method=doSearch " XmlHttp. SetRequestHeader "Accept - Encoding", "gzip, deflate, SDCH" XmlHttp. SetRequestHeader "Accept - Language," "useful - CN, useful; Q=0.8 " XmlHttp. SetRequestHeader "Accept - the Charset", "GBK, utf-8; Q=0.7 *; Q=0.3 " XmlHttp. SetRequestHeader content-type ", "" application/x - WWW - form - urlencoded" 'xmlHttp. SetRequestHeader "Cookie", "JSESSIONIDlz=0000 aowtwmdzc80yilvspchmpvi: 16 f9u5edl" XmlHttp. SetRequestHeader "the user-agent", "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36" XmlHttp. Send Such operations will the traffic data will not add 1, can you tell me the code to simulate the browser, is the traffic also add 1?
CodePudding user response:
Do you want to open the search page, or want to go to the search results page