Try to search your question here, if you can't find : Ask Any Question Now ?

Change proxy server after Http Request using xNet (c#)

HomeCategory: stackoverflowChange proxy server after Http Request using xNet (c#)
Avatarwillson asked 5 months ago

I’m currently working on a C# Application that sends requests to a server. I am using proxies to change my IP to avoid Bans…

Basically, how the application work is: The user imports a list of usernames and proxies (IP:PORT) after the user clicks on the start button it will send the server the first line of text and will set proxy form the imported Proxy.txt file. After the the server responds, it will send the server the server the second line of text and will change the proxy to the second line of proxy form the imported Text file. So it starts form ProxyCount and UserNameCount 1 and then ++ it will keep sending until it has reached the last line of the username.

using xNet;

using (var request = new HttpRequest())
{
    string proxy = "127.0.0.1:8888";

    request["Accept"] = "*/*";
    request.Proxy = Socks5ProxyClient.Parse(proxy);

    var attempt = request.Post("https://fortnite-public-api.theapinetwork.com/prod09/users/id?username=" + TextBox1.Text).ToString();
}
1 Answers
Best Answer
AvatarMannu answered 5 months ago
Your Answer

20 + 9 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com