PutterPlace
Active member
- Joined
- Feb 18, 2008
- Messages
- 37
- Programming Experience
- 1-3
I am currently working on the concept of a new project I'm going to work on. What I want to do is basically call a function a LOT of times....one after the other (an HttpWebRequest & HttpWebResponse). This is basically what's going to happen:
A listbox will contain a few hundred number sequences...
I have already worked out the code to pull a number from the list box and then delete it. Each number is be pulled one at a time, and then sent with a URL in an HttpWebRequest:
[NUMBER] will, of course, be replaced with the number that was just pulled from the list box. After this I will of course get the HttpWebResponse, then check if a specific string exists in the response. If so, write a result to another list box:
[NUMBER] - OK
If that string doesn't exist, then write a failed result to the list box:
[NUMBER] - FAILED
Then move on to the next number and do the same thing. I have already written a code that does this, but what I want is basically some kind of function or something to this more quickly and efficiently than doing it one at a time. I've heard of using threads, but am not very skilled with doing so. Any help would be greatly appreciated.
A listbox will contain a few hundred number sequences...
VB.NET:
987234
928324
124809
235908
719823
234799
235987
209834
839228
etc...
I have already worked out the code to pull a number from the list box and then delete it. Each number is be pulled one at a time, and then sent with a URL in an HttpWebRequest:
VB.NET:
http://www.someURL.com/something.php?id=[NUMBER]
[NUMBER] will, of course, be replaced with the number that was just pulled from the list box. After this I will of course get the HttpWebResponse, then check if a specific string exists in the response. If so, write a result to another list box:
[NUMBER] - OK
If that string doesn't exist, then write a failed result to the list box:
[NUMBER] - FAILED
Then move on to the next number and do the same thing. I have already written a code that does this, but what I want is basically some kind of function or something to this more quickly and efficiently than doing it one at a time. I've heard of using threads, but am not very skilled with doing so. Any help would be greatly appreciated.