1
0
Fork
You've already forked ReqDotNet
0
Easy and fast HTTP library for .NET Framework.
This repository has been archived on 2026年02月15日. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • C# 100%
Find a file
2019年10月19日 09:19:02 +02:00
Properties 1.2.0 2019年10月16日 17:56:27 +02:00
Proxy 1.2.0 2019年10月16日 17:54:55 +02:00
Utils 1.2.0 2019年10月16日 17:54:55 +02:00
.gitignore Initial commit 2019年10月16日 09:22:06 +02:00
CookieStorage.cs 1.1.0 2019年10月16日 12:56:16 +02:00
LICENSE Update LICENSE 2019年10月16日 09:22:44 +02:00
README.md 1.2.0 2019年10月16日 17:55:52 +02:00
ReqDotNet.csproj 1.0.0 2019年10月16日 09:30:53 +02:00
ReqDotNet.sln Added solution file 2019年10月19日 09:19:02 +02:00
Requests.cs 1.2.0 2019年10月16日 17:54:20 +02:00
StatusCode.cs 1.2.0 2019年10月16日 17:54:55 +02:00
UserAgent.cs 1.1.0 2019年10月16日 12:56:58 +02:00

ReqDotNet

Easy and fast HTTP library for .NET Framework.

  • .NET Framework version required : 4.5
  • Current library version : 1.2.0

Changelog

  • Added the StatusCode class so you don't need to search over the internet to find the http status code you need.
  • Added the WebsiteUtils class with the functions GetPageSource() and TestWebsite(), they are pretty much self-explanatory.
  • Optimized the code in the Requests.SendRequest() function, it's cleaner.
  • Improved the proxy support.

Example

Requests r = new Requests()
{
 Method = HttpMethod.Get,
 Address = "https://www.nitrxgen.net/md5db/hash",
 UserAgent = UserAgent.Chrome(),
 Timeout = 5000
};
string response = await r.SendRequestToString();
if (!string.IsNullOrEmpty(response))
{
 // md5 is correct
}
else
{
 // md5 isn't correct
}

If you encounter some bugs with the library, please report them in the project's issues so I can fix them ASAP!

License

This project is free and oepn-source AND it's on the MIT License, meaning you can do pretty much everything with the project like modify it or even sell closed copies! Cool, right?

Donation

Did this project save your time? Was it helpful / easy to use? If yes, then consider donating me (even a little) so I can buy myself a cup of coffee! PayPal : erruption.selly@gmail.com - Bitcoin : 1Q8dZDTDxzJ1YLbm4fYfEK8KvDq86LFucU

Fork the project

If there are some things that seems bad to you or even bugs but you don't want to report them because you're not cool, then you can fork the project and modify / fix / add things!