Hi Guys,
I have maybe 3 POST requests in a piece of code, in each httpwebrequest i have:
Which selects a random proxy from a listview, some of them are hanging, should the same proxy be used on every httpwebrequest in the same piece of code? the way it is now, on every request 3 random proxies are chosen, i'm not sure if that's whats causing the hanging to happen.
thanks for any info guys
Graham
I have maybe 3 POST requests in a piece of code, in each httpwebrequest i have:
PHP:
'// Has proxies been used?
If (formProxies.listViewProxies.Items.Count > 0) Then
'// Initialise the random user agent code
Dim randomProxy As New Random
'// Set a variable to store the random proxy
Dim randonProxySelected = formProxies.listViewProxies.Items.Item(randomProxy.Next(0, formProxies.listViewProxies.Items.Count))
'// If it's greater than 0 there are proxies loaded
Dim ProxyArray As Array = Split(randonProxySelected.Text, ":")
'MessageBox.Show(ProxyServer)
Dim ProxyServer As String = ProxyArray(0).ToString
Dim ProxyPort As Integer = ProxyArray(1).ToString
'// Setup the proxy
.Proxy = New WebProxy("http://" & ProxyServer & ":" & ProxyPort)
End If
Which selects a random proxy from a listview, some of them are hanging, should the same proxy be used on every httpwebrequest in the same piece of code? the way it is now, on every request 3 random proxies are chosen, i'm not sure if that's whats causing the hanging to happen.
thanks for any info guys
Graham