Apr 16, 2010 04:48 AM
(This post was last modified: Aug 8, 2010 01:18 PM by The-One.)
Here you go:
You can easy make a function, to read out some proxys from .txt and use them, this whas just for testing.
Code
Imports System.Net
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If TextBox1.Text.Contains("http://www.#.com/") Then
Dim IP As String = "xxx.xx.xxx.xx" ' Proxy IP
Dim Port As Integer = "80" ' Proxy Port
Dim wc As New WebClient ' WebClient
Dim Proxy As New WebProxy(IP & ":" & Port, True) ' Set Proxy as WebProxy
wc.Proxy = Proxy ' WebClient(.Proxy) = WebProxy
wc.DownloadFile("www.#.com", "AvastBlantiBierus") ' Download the file
Else
MsgBox("Must be a valid # link")
End If
If TextBox2.Text = "" Then ' If 2nd text (Link) is empty
' Nothing, because there isnt need for a seccond download
Else ' if it is
If TextBox2.Text.Contains("http://www.#.com/" then
Dim IP1 As String = "xxx.xx.xxx.xx" ' New Proxy IP
Dim Port1 As String = "80" ' New Proxy Port
Dim wc1 As New WebClient ' New WebClient
Dim Proxy1 As New WebProxy(IP1 & ":" & Port1, True) ' Set Proxy as WebProxy
wc1.Proxy = Proxy1 ' WebClient(.Proxy) = WebProxy
wc1.DownloadFile("www.#.com", "NortonBlantiBierus") 'Download the file
Else
MsgBox("Must be a valid # link")
End If
End If
End Sub
End ClassYou can easy make a function, to read out some proxys from .txt and use them, this whas just for testing.
FR1908


![[Image: Xtddh8V.png]](https://i.imgur.com/Xtddh8V.png)

![[Image: 9AHKvVX.png]](https://i.ibb.co/VW5FmTzk/9AHKvVX.png)
