In my Winsock dataarival i have something like this:
Code:
dim yaya as string

winsock1.getdata yaya


If InStr(1, yaya, "User Registration Confirmation") <> Then

msgbox "Confirmation OK"
Winsock1.Close
end if


winsock1.connect server, 80

Now, on some slow servers, the donwloaded data does get to finish so it cant find the "user registration" string that is at the bottom of the page. What can I put in data arival that will make sure the whole Document is finished before going on and connecting again with the winsock1.connect.

Any help is appreciated.