aboutsummaryrefslogtreecommitdiff
path: root/test/test_networking.py
AgeCommit message (Collapse)Author
2024-09-08[networking] Fix handler not being added to RequestError (#10955)coletdjnz
Authored by: coletdjnz
2024-07-14[networking] Add `legacy_ssl` request extension (#10448)coletdjnz
Supported by Urllib, Requests and Websockets request handlers. Ignored by CurlCFFI. Also added couple cookie-related tests. Authored by: coletdjnz
2024-07-09[rh:curl_cffi] Support `curl_cffi` 0.7.Xcoletdjnz
Authored by: coletdjnz
2024-06-12[cleanup] Add more ruff rules (#10149)sepro
Authored by: seproDev Reviewed-by: bashonly <88596187+bashonly@users.noreply.github.com> Reviewed-by: Simon Sawicki <contact@grub4k.xyz>
2024-05-18[test] Fix connect timeout test (#9906)coletdjnz
Fixes https://github.com/yt-dlp/yt-dlp/issues/9659 Authored by: coletdjnz
2024-05-11[test] Add HTTP proxy tests (#9578)coletdjnz
Also fixes HTTPS proxies for curl_cffi Authored by: coletdjnz
2024-05-04[networking] Add `extensions` attribute to `Response` (#9756)bashonly
CurlCFFIRH now provides an `impersonate` field in its responses' extensions Authored by: bashonly
2024-03-16[rh:curlcffi] Add support for `curl_cffi`coletdjnz
Authored by: coletdjnz, Grub4K, pukkandan, bashonly Co-authored-by: Simon Sawicki <contact@grub4k.xyz> Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com> Co-authored-by: bashonly <bashonly@protonmail.com>
2024-03-16Add new options `--impersonate` and `--list-impersonate-targets`coletdjnz
Authored by: coletdjnz, Grub4K, pukkandan, bashonly Co-authored-by: Simon Sawicki <contact@grub4k.xyz> Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com> Co-authored-by: bashonly <bashonly@protonmail.com>
2024-03-11[cleanup] Misc (#8968)pukkandan
Authored by: pukkandan, bashonly, seproDev
2024-02-18[rh] Remove additional logging handlers on close (#9032)coletdjnz
Fixes https://github.com/yt-dlp/yt-dlp/issues/8922 Authored by: coletdjnz
2024-01-21[rh:requests] Apply `remove_dot_segments` to absolute redirect locationscoletdjnz
Fixes https://github.com/yt-dlp/yt-dlp/issues/9020 Authored by: coletdjnz
2024-01-20[test] Skip source address tests if the address cannot be bound to (#8900)coletdjnz
Fixes https://github.com/yt-dlp/yt-dlp/issues/8890 Authored by: coletdjnz
2023-12-20[test:networking] Update tests for OpenSSL 3.2 (#8814)bashonly
Authored by: bashonly
2023-11-20[rh:websockets] Migrate websockets to networking framework (#7720)coletdjnz
* Adds a basic WebSocket framework * Introduces new minimum `websockets` version of 12.0 * Deprecates `WebSocketsWrapper` Fixes https://github.com/yt-dlp/yt-dlp/issues/8439 Authored by: coletdjnz
2023-11-14[ie] Do not smuggle `http_headers`bashonly
See: https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-3ch3-jhc6-5r8x Authored by: coletdjnz
2023-10-15[rh:requests] Handle both `bytes` and `int` for `IncompleteRead.partial` ↵Simon Sawicki
(Fix 8a8b54523addf46dfd50ef599761a81bc22362e6) (#8348) Authored by: bashonly, coletdjnz, Grub4K
2023-10-13[rh:requests] Add handler for `requests` HTTP library (#3668)coletdjnz
Adds support for HTTPS proxies and persistent connections (keep-alive) Closes https://github.com/yt-dlp/yt-dlp/issues/1890 Resolves https://github.com/yt-dlp/yt-dlp/issues/4070 Resolves https://github.com/ytdl-org/youtube-dl/issues/32549 Resolves https://github.com/ytdl-org/youtube-dl/issues/14523 Resolves https://github.com/ytdl-org/youtube-dl/issues/13734 Authored by: coletdjnz, Grub4K, bashonly
2023-08-25[tests] Add tests for socks proxies (#7908)coletdjnz
Authored by: coletdjnz
2023-08-04[networking] Add request handler preference framework (#7603)coletdjnz
Preference functions that take a request and a request handler instance can be registered to prioritize different request handlers per request. Authored by: coletdjnz Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
2023-07-30[cleanup] Miscpukkandan
2023-07-28[networking] Remove dot segments during URL normalization (#7662)coletdjnz
This implements RFC3986 5.2.4 remove_dot_segments during the URL normalization process. Closes #3355, #6526 Authored by: coletdjnz
2023-07-27[networking] Ignore invalid proxies in env (#7704)coletdjnz
Authored by: coletdjnz
2023-07-24[test] Fix `httplib_validation_errors` test for old Python versions (#7677)coletdjnz
Fixes https://github.com/yt-dlp/yt-dlp/issues/7674 Authored by: coletdjnz
2023-07-23[networking] Add strict Request extension checking (#7604)coletdjnz
Authored by: coletdjnz Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
2023-07-20[networking] Fix `--legacy-server-connect` (#7645)bashonly
Bugfix for 227bf1a33be7b89cd7d44ad046844c4ccba104f4 Authored by: bashonly
2023-07-20[networking] Fix POST requests with zero-length payloads (#7648)bashonly
Bugfix for 227bf1a33be7b89cd7d44ad046844c4ccba104f4 Authored by: bashonly
2023-07-15[compat, networking] Deprecate old functions (#2861)coletdjnz
Authored by: coletdjnz, pukkandan
2023-07-15[networking] Rewrite architecture (#2861)coletdjnz
New networking interface consists of a `RequestDirector` that directs each `Request` to appropriate `RequestHandler` and returns the `Response` or raises `RequestError`. The handlers define adapters to transform its internal Request/Response/Errors to our interfaces. User-facing changes: - Fix issues with per request proxies on redirects for urllib - Support for `ALL_PROXY` environment variable for proxy setting - Support for `socks5h` proxy - Closes https://github.com/yt-dlp/yt-dlp/issues/6325, https://github.com/ytdl-org/youtube-dl/issues/22618, https://github.com/ytdl-org/youtube-dl/pull/28093 - Raise error when using `https` proxy instead of silently converting it to `http` Authored by: coletdjnz
2023-07-15[networking] Add module (#2861)pukkandan
No actual changes - code is only moved around