Below is my VB.net 2003 code for simply looking at a page from a
website with different users with cookies and a get command. More in
the program I use the same technique to post actions to the website
with multiple users.
Anyways. As you can see I can correctly keep track of the HTML for each
index by passing the index in and then storing HTML into that index of
an HTMLarray. for request the reqcount goes up by 1, and for each
response/HTML reply the respcount goes up by one. This to indicate when
the same number of responses have gotten correct replies.
My problem is that if I try to send GET requests on a slow basis, say a
1 seconds difference between the two, it will get the response of the
first request before the 2nd request sends, thus screwing things up.
Whats a smarter solution to my setup?
My timeouts also do not work how they should (why I commented them
out). This may or may not be the cause of alot of errors I am getting
within the code. The site generates alot of 505 internal server errors,
which I wish to ignore or retry. It also complains about
System.IO.IOException: Unable to read data from the transport
connection. It seems to be a random problem.
I've decided to just include the ZIP of the project as it includes the
database and all the code.
http://paroxsitic.50webs.com/asyncPOST.zip