aPerson
06-11-2006, 12:22 AM
Here's my code:
AxWinsock1.RemoteHost = TextBox1.Text
AxWinsock1.RemotePort = 80
Dim request As String
request = "GET " + TextBox1.Text + Chr(10) + Chr(10)
AxWinsock1.Connect()
For i = 1 To tries.Length
If tries.Length - i = 0 Then
Label4.Text = CStr(tries.Length) + " requests sent."
cmdStart.Text = "Start"
Else
AxWinsock1.SendData(request)
Label4.Text = "Sending " + CStr(tries.Length - i) + " requests..."
End If
Next
AxWinsock1.Close()
It gets this error:
Wrong protocol or connection state for the requested transaction or request.
Could someone please tell me how to fix this? Thanks
Oh yeah, I tried closing the connection before opening a new one, and that didn't work either.
AxWinsock1.RemoteHost = TextBox1.Text
AxWinsock1.RemotePort = 80
Dim request As String
request = "GET " + TextBox1.Text + Chr(10) + Chr(10)
AxWinsock1.Connect()
For i = 1 To tries.Length
If tries.Length - i = 0 Then
Label4.Text = CStr(tries.Length) + " requests sent."
cmdStart.Text = "Start"
Else
AxWinsock1.SendData(request)
Label4.Text = "Sending " + CStr(tries.Length - i) + " requests..."
End If
Next
AxWinsock1.Close()
It gets this error:
Wrong protocol or connection state for the requested transaction or request.
Could someone please tell me how to fix this? Thanks
Oh yeah, I tried closing the connection before opening a new one, and that didn't work either.