Home > Software engineering >  Why I use the XMLHTTP, the winhttp all can't get the website updated in real time data in time
Why I use the XMLHTTP, the winhttp all can't get the website updated in real time data in time

Time:12-23

which friend can help me this busy, urgent urgent!!!
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
I recently made a P2P network site bid software,
Explain this website roughly: someone does not regularly on the site of the transfer you have to buy the (products), web site data updated in real time, and I can buy this label when others see, who first who buy to calculate, everyone wants to buy some high interest rate, who under the load can be bought (that is, to bid), those low interest rates have no one to rob, clinch a deal is slow,
In order to get good marks, a lot of people is to use software to rob, to be sure bid is done with software that is not possible to artificially

So I also own a bid software using VB to do, use the XMLHTTP (or Msxml2 XMLHTTP/WINHTTP I tried), web page to keep data (not clinch a deal the target page only), find the appropriate standard immediately buy, but do not know why, I get 80% of web data without those high interest rates standard (I analysis is the high standard have been bought, and the standard would not be in this web page at this time, so I has without the mark of web data), but the mark never lack of those low interest rates,

My question is:
why speed is slower than the others I have web data (1. Certainly not network problem, because I get web data quickly, as long as 0.1 S, I am sure that is not the reason 2. I added url submitted a & amp; (int (1000000 * RND (1)), & amp; Behind only Numbers, no "t=" this parameter can be), the

The following is my scraping of the page source (Xmlhttp, winhttp I have tried all the same, open with true, behind and then determine whether to complete fetching also not line,)
 Private Function aaa (url As a String) As String 
The Set xmlHttp=CreateObject (" Msxml2. XmlHttp ")
XmlHttp. Open "GET", url, False
XmlHttp. SetRequestHeader "the if-modified-since", "0"
XmlHttp. Send (Null)
Aaa=xmlHttp. The responseText
End the Function

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
in addition the following the using the winhttp, why xmlHttp. Send (null) this error often (but not always), (error is real-time operation timeout error - 2147012894), where is wrong?

 Private Function aaa (url As a String) As String 
Set xmlHttp=CreateObject (" WinHttp WinHttpRequest. 5.1 ")
XmlHttp. Open "GET", url, False
XmlHttp. SetRequestHeader "the if-modified-since", "0"
XmlHttp. SetRequestHeader "the user-agent", "Mozilla/5.0 (Windows NT 6.1; WOW64. Trident/7.0; The rv: 11.0) like Gecko "
XmlHttp. Option (4)=& amp; H3300
XmlHttp. Send (null)
Aaa=xmlHttp. The responseText
The Set xmlHttp=Nothing
End the Function


Problems to solve, thank you

CodePudding user response:

I doubt that high site andadministrative above show you
In fact you are can't buy
  • Related