SpeedRequest 1.0.3
dotnet add package SpeedRequest --version 1.0.3
NuGet\Install-Package SpeedRequest -Version 1.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SpeedRequest" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SpeedRequest --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SpeedRequest, 1.0.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SpeedRequest as a Cake Addin #addin nuget:?package=SpeedRequest&version=1.0.3 // Install SpeedRequest as a Cake Tool #tool nuget:?package=SpeedRequest&version=1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SpeedRequest
SpeedRequest will help you run requests quickly and smoothly.
Donate
- Paypal: trungd419@gmail.com - Nguyen Trung Duc
- VietTinBank: 104869915061 - Nguyen Trung Thanh
- MBBank: 9704229287539964 - Nguyen Trung Thanh
- ViettelPay: +84375724938 - Nguyen Trung Thanh
Contacts
- Facebook: trungducmcgamer
- Instagram: trungducmcvn
- Github: trungducmcgamer
- Youtube: trungducmcgamer
- Discord: TrungDucMC_VN #2707
- Zalo: +84375724938
- E-Mail: trungd419@gmail.com
Installation via NuGet
Install-Package SpeedRequest
Features
HTTP Methods
- GET
- POST
- PATCH
- DELETE
- PUT
- OPTIONS
- HEAD
- CONNECT
- TRACE
How to:
Get started
Add in the beggining of file.
using SpeedRequest;
And use one of this code templates:
HttpRequest request = null;
try {
request = new HttpRequest();
// Do something
}
catch (WebException ex) {
// Http error handling
}
catch (Exception ex) {
// Unhandled exceptions
}
Send multipart requests with fields and files:
var multipartContent = new MultipartContent();
multipartContent.AddString("login", "username");
multipartContent.AddString("password", "password");
multipartContent.AddFile(@"C:\hp.rar", "file1", "hp.rar");
string response = request.Post("https://example.com", Method.POST, "application/x-www-form-urlencoded", multipartContent).ToString();
Get page source:
string response = request.Get("https://example.com").ToString();
Post data:
string response = request.Post("https://example.com", Method.POST, "application/x-www-form-urlencoded", "login=username&password=password").ToString();
Get receive the message body of the response:
request.IgnoreProtocolErrors = true;
Add Headers:
request.AddHeaders("name", "value");
Add User-Agent:
request.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36";
Get response headers:
var response = request.Get("https://example.com");
Headers[] headersResponse = response.HeadersResponse;
foreach (Headers headers in headersResponse)
{
// concat your string or do what you want
Console.WriteLine($"{headers.Name}: {headers.Value}");
}
Download a file:
var response = request.Get("https://example.com");
response.ToFile("C:\\myDownloadedFile.zip");
Get Cookies:
var response = request.Get("https://example.com");
Cookies[] cookieResponse = response.Cookies;
foreach (Cookies cookie in cookieResponse)
{
// concat your string or do what you want
Console.WriteLine($"{cookie.Name}: {cookie.Value}");
}
Set proxy server:
// Type: HTTP / HTTPS
request.Proxy = HttpProxyClient.Parse("127.0.0.1:8080");
// Type: Socks4
request.Proxy = Socks4ProxyClient.Parse("127.0.0.1:9000");
// Type: Socks4a
request.Proxy = Socks4aProxyClient.Parse("127.0.0.1:9000");
// Type: Socks5
request.Proxy = Socks5ProxyClient.Parse("127.0.0.1:9000");
// Type: Proxy Authentication
request.Proxy = HttpProxyAuthenticationClient.Parse("127.0.0.1", 8080, "username", "password");
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
SpeedRequest will help you run requests quickly and smoothly.