|
3 | 3 |
|
4 | 4 | A .NET client for [CycleTLS](https://github.com/Danny-Dasilva/CycleTLS). |
5 | 5 |
|
6 | | -.NET 7.0 | You can build if you need another version of .net |
7 | | - |
8 | | - |
| 6 | + |
| 7 | +[](https://www.nuget.org/packages/CycleTLS/) |
| 8 | +[](https://www.nuget.org/packages/CycleTLS.RestSharp/) |
| 9 | + |
9 | 10 |
|
| 11 | +Supports .NET 8.0 (Build available for other .Net versions) |
10 | 12 | ## Installation |
11 | 13 |
|
12 | | -1. Download the latest release and import it into your project. |
| 14 | +### With Nuget |
| 15 | +1. In Visual Studio, right-click on your project's Solution Explorer and select 'Manage NuGet Packages'. |
| 16 | +2. Go to the 'Browse' tab, search for `CycleTLS` and `CycleTLS.RestSharp`. |
| 17 | +3. Click 'Install' for each package. |
| 18 | +4. Accept the prompts to complete installation. |
| 19 | + |
| 20 | +Or, via Package Manager Console: |
| 21 | +```bash |
| 22 | +Install-Package CycleTLS |
| 23 | +``` |
13 | 24 |
|
14 | | -2. Next, you'll need to download the executable for [CycleTLS](https://www.npmjs.com/package/cycletls?activeTab=code). Install CycleTLS using NPM by following these steps: |
| 25 | +### Manual Installation |
15 | 26 |
|
16 | | - - Open your terminal or command prompt. |
17 | | - - Navigate to your project directory using the `cd` command. |
18 | | - - Run the following command to install CycleTLS: `npm install cycletls` |
| 27 | +1. Download the latest release of CycleTLS.NET's and import it into your project. |
| 28 | +2. Install CycleTLS using NPM: |
| 29 | + - Open a terminal/command prompt. |
| 30 | + - Navigate to your project directory (`cd your_project_path`). |
| 31 | + - Run `npm install cycletls`. |
19 | 32 |
|
20 | | -3. Once CycleTLS is installed, locate the executable file in the installation folder. |
| 33 | +Locate the CycleTLS executable in the installation folder after installation. |
21 | 34 |
|
22 | | -By following these steps, you'll have CycleTLS installed and ready to use in your project. |
23 | 35 | ## Usage |
24 | 36 |
|
25 | | -#### Server |
| 37 | +### Server |
26 | 38 |
|
27 | 39 | ```csharp |
28 | 40 | using CycleTLS; |
@@ -57,17 +69,23 @@ RestClient restClient = new(new RestClientOptions() |
57 | 69 | BaseUrl = new Uri("https://example.org"), |
58 | 70 | }); |
59 | 71 |
|
| 72 | +restClient.AddDefaultHeader("ja3", "ja3 value"); // Set JA3 all requests |
| 73 | +
|
60 | 74 | RestRequest request = new RestRequest() |
61 | 75 | { |
62 | 76 | Method= Method.GET, |
63 | 77 | }; |
64 | 78 |
|
| 79 | +request.AddHeader("ja3", "ja3 value"); // Set JA3 for specific request |
| 80 | +
|
65 | 81 | /* You can use all features of RestRequest object | For more information look examples */ |
66 | 82 |
|
67 | 83 | var response= await restClient.ExecuteCycleAsync(request, cycleClient); |
68 | 84 | ``` |
69 | 85 | ## Files you use |
70 | 86 |
|
71 | 87 | * CylceTLS |
72 | | - * [CycleRequestOptions](https://github.com/ErenKrt/CycleTLS.NET/blob/main/CycleTLS/CycleTLS/Models/CycleRequestOptions.cs) |
73 | | - * [RestCyleExtensions](https://github.com/ErenKrt/CycleTLS.NET/blob/main/CycleTLS/Example.RestSharp/Example.RestSharp.csproj) |
| 88 | + * [CycleRequestOptions](https://github.com/ErenKrt/CycleTLS.NET/blob/main/src/CycleTLS/Models/CycleRequestOptions.cs) |
| 89 | + * [RestCyleExtensions](https://github.com/ErenKrt/CycleTLS.NET/blob/main/src/CycleTLS.RestSharp/Helpers/RestCyleExtensions.cs) |
| 90 | + |
| 91 | +[](https://www.instagram.com/ep.eren) |
0 commit comments