Leaf.xNet - provides HTTP/HTTPS, Socks 4A, Socks 4, Socks 5
Leaf.xNet it's a based on Extreme.Net. And original library xNet.
Usage same like original xNet.
PM > Install-Package Leaf.xNet
dotnet add package Leaf.xNet
paket add Leaf.xNet
If this project help you reduce time to develop, you can give me a cup of coffee :)
Yandex Money / Debert Card: 410011037924983
Webmoney WMR: R246626749259
Webmoney WMZ: Z349403749504
Webmoney WMU: U313788999957
Webmoney WME: E894184114651
Webmoney WMX: X428336365219
Bitcoin BTC: 3AYA9xsGGZcbnX63i5bwfGkvXNDxC7r7Uo
Bitcoin Gold BTG: AaXkAfose8ArsZHoWuC2bYZhMfkdutNG8S
Bitcoin Cash BCH: 3N2wxyixecHtUrqJgRrdKs4pu7oPzMFtpm
LiteCoin LTC: MK5Dsyo6ek9z1CN19oNRhTrK2VrvNWq654
using Leaf.xNet.Services.Cloudflare;
// Check and pass CloudFlare JS Challange if it's present
// Attention: It's working when Re-Captcha enabled
var httpRequest = new HttpRequest();
var clearResp = httpRequest.GetThroughCloudflare("https://...");
// Check only (without solution)
var resp = httpRequest.Get("https://...");
bool isCloudFlared = resp.isCloudFlared();httpRequest.EnableMiddleHeaders = true;
// This requrest has a lot of redirects
var resp = httpRequest.Get("https://account.sonyentertainmentnetwork.com/");
var md = resp.MiddleHeaders;Cookies enabled by default. If you wait to disable parsing it use:
HttpRequest.DontTrackCookies = true;httpRequest.UserAgentRandomize();
// Call it again if you want change it again