Now, finally got some time with c# again, with my webbrowser I am wanting to use http proxies, I have a list and I made it to where I can load the file and display it in my richtextbox (idk why I just decided to use it
) now I am wanting to get it to where it will use the first proxy on the list for certain amount of minutes, about 5 minutes or so, and then switch to the next one on the list.
I have the proxy (I think) coding which is here.
where it says host, port I am wanting to put the ip into the host section and the port in the port section (of course
)
question is am I even using right coding for this? If so, how can I get it to use the first proxy?
I came to the conclusion I may have to make a read line where it will read before the colon ":" as the ip, and after the colon ":" as the port
But I am sure there is easier way to doing this.
) now I am wanting to get it to where it will use the first proxy on the list for certain amount of minutes, about 5 minutes or so, and then switch to the next one on the list.I have the proxy (I think) coding which is here.
Code:
HttpWebRequest webrequest = (HttpWebRequest)WebRequest.Create(textBox1.Text);
webrequest.Proxy = new WebProxy(host, port);
HttpWebResponse response = (HttpWebResponse)webrequest.GetResponse();
Stream receiveStream = response.GetResponseStream();
WebBrowser webBrowser = new WebBrowser();
webBrowser.DocumentStream = receiveStream;
where it says host, port I am wanting to put the ip into the host section and the port in the port section (of course
)question is am I even using right coding for this? If so, how can I get it to use the first proxy?
I came to the conclusion I may have to make a read line where it will read before the colon ":" as the ip, and after the colon ":" as the port
But I am sure there is easier way to doing this.















