RuriLib.Proxies and RuriLib.Http are now available on nuget.org

Hey everyone, I hope you’re doing fine.

I cleaned up and documented the libraries that OB2 uses to make HTTP requests with proxies, then I uploaded them to nuget so you can include them inside your own projects as well (.NET 5+ required). You can find some examples of code here

RuriLib.Proxies Documentation
RuriLib.Http Documentation

These libraries are basically an alternative to xNet and its forks.
If you have any questions please feel free to ask them in the #coding subforum. I would really like to know if anyone of you plans to use them in a project and wants me to improve the documentation or simplify the API.

Stay awesome,

Ruri

8 Likes

These libraries have been updated, here are the changelogs

Changelog

2.0.0 - 2026-06-06

Changes since 1.0.2, released on 2022-03-09:

  • Retargeted the package to .NET 10.
  • Improved SOCKS proxy client reliability.
  • Added cancellation token propagation during DNS resolution.
  • Preferred IPv4 addresses over IPv6 addresses when resolving hosts.
  • Fixed plain HTTP requests over HTTP proxies.
  • Added BadProxyException and improved bad proxy classification for non-working proxies.
  • Refactored proxy settings, clients, and tests with nullable reference types enabled.
  • Added regression tests for proxy clients and host resolution behavior.

Changelog

2.0.0 - 2026-06-06

Changes since 1.0.1, released on 2022-03-09:

  • Retargeted the package to .NET 10.
  • Added curl-impersonate HTTP support, including browser profiles, custom profiles, native library loading, and packaged runtime assets.
  • Added zstd response decoding support.
  • Improved HTTP stream content decoding and ignored unsupported encoding values safely.
  • Improved cookie parsing, including more reliable comma-separated cookie handling.
  • Fixed plain HTTP requests sent over HTTP proxies.
  • Added an option path for ignoring certificate validation.
  • Improved Windows certificate authority handling for curl-impersonate.
  • Added regression tests for content encodings, cookie parsing, HTTP proxy behavior, and curl-impersonate behavior.