Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21266

web server stress tester devolopment question

$
0
0
since the topic is about my server i let you all know this isnt violating in anyway:p

i need information how i can make this hit my server hard so i can tweak up my server for better performance


project1
i use listview1 & i load up http proxies list port 8080 , 80 ,3128

1 winsock control index set to 0

and now

i tell winsock1 to make lots of get request using all those proxies and yes it does what i want +
i can se in my server & my forum the online user count goes up 1000 or so depending on how many proxies i use.

my goal is to understand how do i tress the server using the get request , i read around that when making a get request dont send the data full only send small parts of it

say this is the sniffed out http packet for the site

Code:

GET / HTTP/1.1
Host: xxxx.com
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:19.0) Gecko/20100101 Firefox/19.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Cookie: phpbb3_dcbxo_u=1; phpbb3_dcbxo_k=; phpbb3_dcbxo_sid=5eb4ac89de300609c807cd3ebb811083; __utma=187349920.1209597935.1361964197.1362152877.1362157954.7; __utmz=187349920.1361964197.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); style_cookie=printonly
Connection: keep-alive
Cache-Control: max-age=0


in winsock i will only use


Code:

Private Sub Winsock1_Connect(Index As Integer)
dim ddd as string,data as string
data = "GET " & "http://" & "xxx.com" & "/" & " " & "HTTP/1.1" & vbCrLf
      data = data & "Content-Length: " & Len(ddd) & vbCrLf & vbCrLf
    Winsock1(Index).SendData data

end sub

how do i make connnection hold ?



how do i make this affective what can i use ?

please do understand this is for my server and not to harm other:thumb:

Viewing all articles
Browse latest Browse all 21266

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>