Home > Software engineering >  Website hits statistics
Website hits statistics

Time:09-17

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

CodePudding user response:

Use webbrowser control

Webbroser1. Navigate2 address

Certainly can refresh

CodePudding user response:

refer to the second floor caozhy response:
use webbrowser control

Webbroser1. Navigate2 address

Certainly can refresh

Navigate2 and Navigate what "material difference"?

CodePudding user response:

reference 3/f a toast to invite the bright moon response:
Quote: refer to the second floor caozhy response:

Use webbrowser control

Webbroser1. Navigate2 address

Certainly can refresh

Navigate2 and Navigate what "material difference"?


Vb5.0 and vb6.0 by use of the difference

CodePudding user response:

Caozhy
reference 4 floor response:
Quote: refer to 3rd floor a toast to invite the bright moon response:

Quote: refer to the second floor caozhy response:

Use webbrowser control

Webbroser1. Navigate2 address

Certainly can refresh

Navigate2 and Navigate what "material difference"?


Vb5.0 and vb6.0 by use of the difference between

Actually reply after last night, I also search on the Internet...

I think, if you say Navigate2 can realize the requirement of the building Lord, so that in Navigate can ah,
I saw several article said that the "difference" between them,
But this "visit the web site", Navigate2 and Navigate should be identical,

CodePudding user response:

refer to fifth floor a toast to invite the bright moon response:
Quote: refer to 4th floor caozhy response:

Quote: refer to the third floor a toast to invite the bright moon response:

Quote: refer to the second floor caozhy response:

Use webbrowser control

Webbroser1. Navigate2 address

Certainly can refresh

Navigate2 and Navigate what "material difference"?


Vb5.0 and vb6.0 by use of the difference between

Actually reply after last night, I also search on the Internet...

I think, if you say Navigate2 can realize the requirement of the building Lord, so that in Navigate can ah,
I saw several article said that the "difference" between them,
But this "visit the web site", Navigate2 and Navigate should be identical,


What is this, Microsoft can some interface number 7, 8,
"Interface" is such a bad thing, once designed, you can't literally change, to change, can only add a new interface, a lot of people don't understand this, however, especially in a school teacher, preach interface what a good every day,

CodePudding user response:

refer to 6th floor caozhy response:
Quote: refer to fifth floor a toast to invite the bright moon response:


.


What is this, Microsoft can some interface number 7, 8,
"Interface" is such a bad thing, once designed, you can't literally change, to change, can only add a new interface, a lot of people don't understand this, however, especially in a school teacher, preach interface what a good every day,

What's wrong with the interface!
Isn't "does not provide any interface" COM object, you just feel good!

But this kind of object, in addition to the waste of resources, still have what use?

Interface after "released", is "can't change", otherwise, how compatible with existing code, compatible with different operating environment?
When "version upgrade", concrete implementation can be changed, but "interface parameters cannot be changed, this is common sense,

Here we thought we were saying Navigate2 and Navigate to the requirements of the building Lord have what influence and difference,
You are now to the "interface number" of "the same", is enough to pull the egg......
But when it comes to here, I'm curious, what interface can make so many number,
You said a to see,


I think you reply on the 2 floor, simple said is "use webbrowser control access, can achieve a goal",

Whether it can really achieve a goal, of course, only to try the building Lord,
  •  Tags:  
  • VBA
  • Related