Questions tagged [xnet]

xNet - a class library for .NET Framework, which includes Classes for work with proxy servers: HTTP, Socks4(a), Socks5, Classes for work with HTTP 1.0/1.1 protocol: keep-alive, gzip, deflate, chunked, SSL, proxies and more, Classes for work with multithreading: a multithreaded bypassing the collection, asynchronous events and more.

xNet - a class library for .NET Framework, which includes:

  • Classes for work with proxy servers: HTTP, Socks4(a), Socks5.
  • Classes for work with HTTP 1.0/1.1 protocol: keep-alive, gzip, deflate, chunked, SSL, proxies and more.
  • Classes for work with multithreading: a multithreaded bypassing the collection, asynchronous events and more.

See http://xnet.codeplex.com/.

17 questions
20
votes
2 answers

C# - how to do multiple web requests at the same time

I wrote a code to check urls, however, ir works really slow.. I want to try to make it work on few urls at the same time, for example 10 urls or at least make it as fast as possible. my Code: Parallel.ForEach(urls, new ParallelOptions { …
Ariel
  • 221
  • 1
  • 2
  • 5
1
vote
1 answer

Rapidly Increasing Memory usage C#

I have code that basically opens a webpage + .ts file from a link and repeats it, but the problem is it increases memory usage each time and never removes the old data. After 2 Hours it uses more than 2GB. Any ideas on how I can fix this issue? I'm…
1
vote
1 answer

C# - Writing to text file inside parallel.foreach loop

I made a proxy checker, however, since I usnig Parallel.foreach loop, I get after X amount of time, an error and the program just crash. it says that the writing is already used by another process, here is my code: public static void Check() { …
John
  • 13
  • 1
  • 5
1
vote
1 answer

C# - How to get cookies from website using xNet

I want to submit Emails in this website:…
John
  • 11
  • 4
1
vote
0 answers

I can't use xNet to create a hostname on noip.com

I can't use xNet to create a hostname on noip.com. My post action will return a redirect to the login page. This is why? using (var req = new HttpRequest()) { req.UserAgent = "Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia…
1
vote
0 answers

C# Limit http requests per second

i have tool that is using proxies to send http requests. I need help with limiting http requests per second. Currently i'm using following code, but i know this is wrong method. So my question is how i can limit maximum 300 connections per second…
Jesus IYD
  • 26
  • 4
1
vote
2 answers

xNet request problems

HttpResponse response; request.AllowAutoRedirect = false; request.UserAgent = HttpHelper.IEUserAgent(); response = request.Post("https://www.site.com", "value=1"); But after request, program trys to open file value=1. Why?
user3162588
  • 11
  • 1
  • 2
0
votes
1 answer

Leaf.xNet.HttpException: "Could not receive the message body of the response HTTP-server 'example.com'"

This error appears only on this link, other links work correctly Internal exceptions (1/2) - IOException: Unable to read data from the transport connection. An attempt to establish a connection was unsuccessful because the required response was not…
Blann
  • 1
  • 2
0
votes
1 answer

how to post data login in web vlogtruyen

i have installed all the headers requested by vlogtruyen web site but return error code 'Ошибка на стороне клиента. од . What happened and how to fix it? using xNet; HttpRequest httpRequest = new HttpRequest(); httpRequest.Cookies =…
0
votes
1 answer

Not getting response from server, leaf xnet

Using leaf xnet to make a request, but Im getting the could not get a response from server. Tried using postman and its working fine, but c# is giving me that error. var request = new HttpRequest(); string response =…
tagog97383
  • 19
  • 5
0
votes
0 answers

How do I use Leaf.xnet Substring recursively

I am trying to retrieve password reset links with Leaf.xnet I have been using the Substring but it only loads the first substring when there a recursive amount of password reset emails, how would I be able to grab them…
0
votes
0 answers

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

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... Issue: The only problem is it doesn't work how I want it to. I want the program to Automatically to change the username…
0
votes
1 answer

C# - xNet - how to add proxy support

I made a checker for some website, however, I need to add Proxy support: using (var request = new HttpRequest()) { request.Proxy = new HttpProxyClient(ProxyRandom()); } public static string ProxyRandom() { Random rnd = new Random(); …
John
  • 13
  • 1
  • 5
0
votes
1 answer

C# - xNet Proxy support

I wanted to ask if it's possible to use xNet with Proxies? using (var request = new HttpRequest()) { var attempt = request.Post("https://api.zcdn.de/oauth/authorizations").ToString(); } the problem is that I have to use proxies to change my…
Alex
  • 9
  • 6
0
votes
0 answers

How to get cookies from Fiddler?

I have starting to use xNet and I managed to log in to the website without cookies from a console application. however, now I want to login to Roblox from Console Application but the problem is that I have to get the cookies to make it work. using…
Aleks
  • 1
1
2