Re: Generate http request
Sounds like a DoS attack program...
Re: Generate http request
Quote:
Originally Posted by stanav
Sounds like a DoS attack program...
:(
if i wanted a DoS attack program I would download one of the net...
this is for my project in grad school. Test the performace of the webserver...
Re: Generate http request
Re: Generate http request
doesn't the microsoft application test center in MSVS 2003 do just what you're requesting?
Re: Generate http request
You could try looking at System.Net.WebClient and System.Threading as a start...
Create multiple threads that all have an instance of WebClient and make requests over and over again to a server.
Hope this helps,
Brian Swanson
Re: Generate http request
Quote:
Originally Posted by TokersBall_CDXX
doesn't the microsoft application test center in MSVS 2003 do just what you're requesting?
Interesting I use VS 2005 and don't have it... :confused:
Re: Generate http request
Quote:
Originally Posted by purpleant
You could try looking at System.Net.WebClient and System.Threading as a start...
Create multiple threads that all have an instance of WebClient and make requests over and over again to a server.
Hope this helps,
Brian Swanson
OK, thank you for the hint. :thumb:
I created some simple app, it creates whatever number of threads I need that send http requests.
Now I can have a lot more requests PER second but it still not enough for the project.
Is it possible to create lets say 1000 Threads that will send a request but not start them untill all of them are created and then start all of them at once but not one by one? :cool:
Re: Generate http request
I'm not very good with thread synchronization and such, but my immediate thought is have a loop at the beginning of each thread method that waits for a global boolean to be set to true, and set the global to true after all threads are created...
Hope this helps,
Brian Swanson
Re: Generate http request
Quote:
Originally Posted by purpleant
I'm not very good with thread synchronization and such, but my immediate thought is have a loop at the beginning of each thread method that waits for a global boolean to be set to true, and set the global to true after all threads are created...
Hope this helps,
Brian Swanson
that's what i was thinking as well, but the thing is:
if i created 1000 threads BUT not start them, I will have to go through a loop anyhow to start all of them and it will take time as well...
Re: Generate http request
Quote:
Originally Posted by rookie7799
Interesting I use VS 2005 and don't have it... :confused:
if you open the vs 2005 IDE with no solution or projects, one of the menu selections is Test.
I believe this is where microsoft moved their application test environment.