Commit Graph

49 Commits

Author SHA1 Message Date
Diego Heras aca4a16bae
ci/cd: fix whitespaces (#11749) 2021-05-16 20:13:54 +02:00
Diego Heras bf8cae6a48
core: allow to set user-agent header per indexer (#10528) 2020-12-16 01:42:41 +01:00
Diego Heras ebe05267b2
core: FlareSolverr integration. Bypass Cloudflare protection (#9028) 2020-12-13 21:42:10 +01:00
Diego Heras 7279edf354
core: fix ignoresslerrors cli option (#9657) 2020-09-26 19:50:58 +02:00
ngosang 621a47338d core: refactor http webclient part 16 #8529
Rename RequestWithCookiesAsync method
2020-09-21 19:06:32 +02:00
ngosang 5ad1c9c87c core: refactor http webclient part 15 #8529
Fix Mono 5.x and Automapper bugs
2020-09-21 18:21:48 +02:00
Cory 67c7b4ca70 core: refactor http webclient part 12 #8529 (#8939)
Merge web results classes into single class and update usages
2020-09-21 18:13:27 +02:00
Cory 124719acae core: refactor http webclient part 11 #8529 (#7728)
Remove redundant NetCore classes and update client selection logic
2020-09-21 18:13:23 +02:00
Cory ab74421a81 core: refactor http webclient part 9 #8529 (#7727)
Move identical functions up to base WebClient instance. Replay #7691
2020-09-21 18:13:16 +02:00
Cory b2f00d7fde core: refactor http webclient part 7 #8529 (#7689)
Move web-result encoding logic to internal lazy evaluation
2020-09-21 18:13:09 +02:00
Cory 30965c0d3b core: refactor http webclient part 5 #8529 (#7661)
Update standard clients to X509Certificate2
2020-09-21 18:12:03 +02:00
Cory 4dd6da4f6e core: refactor http webclient part 4 #8529 (#7653)
Change byte result name to ContentBytes in preparation for merge
2020-09-21 18:12:00 +02:00
Cory abb8526b76 core: refactor http webclient part 3 #8529 (#7659)
Move encoding for results into BaseWebResult to prepare for class merging
2020-09-21 18:11:57 +02:00
ngosang e4d384158a Revert "core: refactor http webclient part 3 #8529 (#7659)"
This reverts commit 823ed8522c.
2020-09-21 08:04:15 +02:00
ngosang ede3f77e6a Revert "core: refactor http webclient part 4 #8529 (#7653)"
This reverts commit c605c9a7ae.
2020-09-21 08:04:11 +02:00
ngosang 263b5b5433 Revert "core: refactor http webclient part 5 #8529 (#7661)"
This reverts commit 4a11a770d7.
2020-09-21 08:04:06 +02:00
ngosang 5f457fcb29 Revert "core: refactor http webclient part 7 #8529 (#7689)"
This reverts commit 79fa3b9e0d.
2020-09-21 08:03:27 +02:00
ngosang 94feb875f7 Revert "core: refactor http webclient part 9 #8529 (#7727)"
This reverts commit c8b91bece6.
2020-09-21 08:03:18 +02:00
ngosang 90d31a9b8e Revert "core: refactor http webclient part 11 #8529 (#7728)"
This reverts commit e0ef6bc8a8.
2020-09-21 08:03:08 +02:00
ngosang a8d055f0d5 Revert "core: refactor http webclient part 12 #8529 (#8939)"
This reverts commit 22bced9ca3.
2020-09-21 08:02:58 +02:00
Cory 22bced9ca3 core: refactor http webclient part 12 #8529 (#8939)
Merge web results classes into single class and update usages
2020-09-19 18:40:08 +02:00
Cory e0ef6bc8a8 core: refactor http webclient part 11 #8529 (#7728)
Remove redundant NetCore classes and update client selection logic
2020-09-19 18:39:33 +02:00
Cory c8b91bece6 core: refactor http webclient part 9 #8529 (#7727)
Move identical functions up to base WebClient instance. Replay #7691
2020-09-19 18:38:46 +02:00
Cory 79fa3b9e0d core: refactor http webclient part 7 #8529 (#7689)
Move web-result encoding logic to internal lazy evaluation
2020-09-19 18:37:56 +02:00
Cory 4a11a770d7 core: refactor http webclient part 5 #8529 (#7661)
Update standard clients to X509Certificate2
2020-09-19 18:36:56 +02:00
Cory c605c9a7ae core: refactor http webclient part 4 #8529 (#7653)
Change byte result name to ContentBytes in preparation for merge
2020-09-19 18:36:33 +02:00
Cory 823ed8522c core: refactor http webclient part 3 #8529 (#7659)
Move encoding for results into BaseWebResult to prepare for class merging
2020-09-19 18:35:44 +02:00
Diego Heras c02a782b95
core: fix cloudflare iuam. resolves #8539 (#8617) 2020-05-13 00:04:47 +02:00
Diego Heras 9cbc78b1c2
core: fix cookie parsing (part 2) (#8150)
* core: fix cookie parsing (part 2)

After fixing cookie storage in #8133 I noticed that I still have a lot of '.json.bak' files in the Jackett configuration folder. After deleting them they were created again in each request. The cause was we were parsing bad the cookies with '=' character in the value. Most Cloudflare cookies include if so we were sending bad cookies and solving the callenge in each request.

This PR should increase performance in several ways: we are not solving the challenge again (it takes time), we are not making extra requests and we are not updating the Jackett configuration in each request (both files '.json' and '.json.bak').

Tested with the client HttpWebClient2NetCore only. Please do some tests with the site 1337x.
2020-04-13 06:22:50 +02:00
Cory 5b6c9fee49
Fix proxy in all cases (#7631) resolves #7411
Co-authored-by: Diego Heras <ngosang@hotmail.es>
2020-03-14 17:53:16 -05:00
Cory 348dddfbee
core: Apply declarations styles (#7166) 2020-02-11 11:16:19 +13:00
Cory 98541ac6f8
core: Sort and remove usings (#7159) 2020-02-10 07:08:34 +13:00
Cory c12da520a4
Run dotnet format on solution (#7145) 2020-02-09 15:35:16 +13:00
Diego Heras f770596354
core: fix form encoding. resolves #4346 resolves #3061 (#6994) 2020-02-08 19:03:03 +13:00
Hazem Ahmed Amr 90c224fdea Fix #4982: replaced CloudFlareUtilities with CloudflareSolverRe (#5897) 2019-08-23 07:35:49 +12:00
kaso17 a4ba0d21d9 HTTPClients: avoid Exception User-Unhandled notices 2019-04-02 15:39:14 +02:00
kaso17 75d53b4026 improve certificate validation error handling 2019-02-22 17:42:42 +01:00
kaso17 7a2c0bf260 HTTPWebClient: improve mono relative redirect bug workaround 2018-09-17 16:43:09 +02:00
kaso17 676d03eb88 mono: redirect workaround 2018-06-14 17:28:57 +02:00
kaso17 c1fb41204c CloudFlare: increase retries 2018-05-15 12:50:14 +02:00
kaso17 402dd9d917 Cloudflare: adjust parameters 2018-04-06 12:20:36 +02:00
kaso17 b55d55c640 adjust cloudflare ClearanceDelay 2018-03-22 19:58:49 +01:00
flightlevel 3e5e48c3a0
Change namespace to Jackett.Common (#2691)
Really hope I don't break anything with this
Went to have a go at .NET core and it just became too confusing for me with 'Jackett' namespace referring to both Jackett.Common and Jackett
2018-03-10 19:05:56 +11:00
kaso17 59388a8f80 allow proxy changes without restart 2017-11-17 16:46:58 +01:00
kaso17 968a7729c3 Fix SocksWebProxy race condition 2017-11-16 18:00:49 +01:00
kaso17 afe64a1b8f fix SocksWebProxy race condition 2017-11-16 16:51:34 +01:00
Nathan Holland 1c62504b22 Remove Static Configuration Class and .NET Core Prep (#2122)
* Remove static configuration class that required prior knowledge of when it was initialised to dependency injected method that ensures all configuration has already occured.

* Specify a different log name for the updater, require a path when running the Jackett updater

* Update to all .NET Standard packages

* Explicitly specify the restore project style

* Move automapper out of the  DI framework and put crude detection to prevent it from initializing more than once.
2017-11-13 19:38:38 +11:00
Andy Simons 2b32fb358c Socks proxy support (#2058)
* socks proxy implementaion through SocksWebProxy package

* after merge fixes
2017-11-06 21:51:26 +11:00
Nathan Holland 571c52a0f2 Feature/netcore preparation (#2072)
* Use platform detection that works on mono 4.6+

* Move to use package reference for restoring nuget packages.

* DateTimeRoutines does not have Nuget packages that support .NET Standard (and therefore .NET Core). We will have to include them for now until we can get rid of this dependency.

* Start spliting some interfaces into their own files - this will help by allowing us to split them out in the future into a seperate project so the actual implementations can stay within their respective architectures when required

* Move out common libraries

* Few more tidy up tasks to get things working with .NET Standard

* Restructure the solution layout

* Encoding work to reduce rework later on platforms without Windows codepages (or require compliance with RFC1345)

* Move folder structure around to have more natural layout of the solutions

* DI server configuration to get rid of "temporary" hack and dependency circle for serverservice

* Make all encoding consistent to match the expected encoding casing for earlier versions of mono.
2017-11-05 20:42:03 +11:00
Renamed from src/Jackett/Utils/Clients/HttpWebClient.cs (Browse further)