mirror of
https://github.com/lwthiker/curl-impersonate.git
synced 2026-10-11 19:56:37 +00:00
Add impersonation support for Chrome 100 and 101
.. and for Edge 101 as well. The TLS fingerprint is identical to previous versions. The HTTP headers have the usual differences in the user agents. One important change though is in the way the HTTP2 SETTINGS frame is formed. Up until Chrome 98, there was an additional randomly-generated setting in the frame. This seems to have been removed since. Therefore it was removed from curl-impersonate as well, and support for Chrome/Edge 98 was deprecated, since supporting both signatures requires a lot of work.
This commit is contained in:
+27
-18
@@ -129,11 +129,12 @@ class TestImpersonation:
|
||||
# List of binaries and their expected signatures
|
||||
CURL_BINARIES_AND_SIGNATURES = [
|
||||
# Test wrapper scripts
|
||||
("curl_chrome98", None, None, "chrome_98.0.4758.102_win10"),
|
||||
("curl_chrome99", None, None, "chrome_99.0.4844.51_win10"),
|
||||
("curl_chrome100", None, None, "chrome_100.0.4896.127_win10"),
|
||||
("curl_chrome101", None, None, "chrome_101.0.4951.67_win10"),
|
||||
("curl_chrome99_android", None, None, "chrome_99.0.4844.73_android12-pixel6"),
|
||||
("curl_edge98", None, None, "edge_98.0.1108.62_win10"),
|
||||
("curl_edge99", None, None, "edge_99.0.1150.30_win10"),
|
||||
("curl_edge101", None, None, "edge_101.0.1210.47_win10"),
|
||||
("curl_safari15_3", None, None, "safari_15.3_macos11.6.4"),
|
||||
("curl_ff91esr", None, None, "firefox_91.6.0esr_win10"),
|
||||
("curl_ff95", None, None, "firefox_95.0.2_win10"),
|
||||
@@ -143,14 +144,6 @@ class TestImpersonation:
|
||||
# Test libcurl-impersonate by loading it with LD_PRELOAD to an app
|
||||
# linked against the regular libcurl and setting the
|
||||
# CURL_IMPERSONATE env var.
|
||||
(
|
||||
"minicurl",
|
||||
{
|
||||
"CURL_IMPERSONATE": "chrome98"
|
||||
},
|
||||
"libcurl-impersonate-chrome",
|
||||
"chrome_98.0.4758.102_win10"
|
||||
),
|
||||
(
|
||||
"minicurl",
|
||||
{
|
||||
@@ -159,6 +152,22 @@ class TestImpersonation:
|
||||
"libcurl-impersonate-chrome",
|
||||
"chrome_99.0.4844.51_win10"
|
||||
),
|
||||
(
|
||||
"minicurl",
|
||||
{
|
||||
"CURL_IMPERSONATE": "chrome100"
|
||||
},
|
||||
"libcurl-impersonate-chrome",
|
||||
"chrome_100.0.4896.127_win10"
|
||||
),
|
||||
(
|
||||
"minicurl",
|
||||
{
|
||||
"CURL_IMPERSONATE": "chrome101"
|
||||
},
|
||||
"libcurl-impersonate-chrome",
|
||||
"chrome_101.0.4951.67_win10"
|
||||
),
|
||||
(
|
||||
"minicurl",
|
||||
{
|
||||
@@ -167,14 +176,6 @@ class TestImpersonation:
|
||||
"libcurl-impersonate-chrome",
|
||||
"chrome_99.0.4844.73_android12-pixel6"
|
||||
),
|
||||
(
|
||||
"minicurl",
|
||||
{
|
||||
"CURL_IMPERSONATE": "edge98"
|
||||
},
|
||||
"libcurl-impersonate-chrome",
|
||||
"edge_98.0.1108.62_win10"
|
||||
),
|
||||
(
|
||||
"minicurl",
|
||||
{
|
||||
@@ -183,6 +184,14 @@ class TestImpersonation:
|
||||
"libcurl-impersonate-chrome",
|
||||
"edge_99.0.1150.30_win10"
|
||||
),
|
||||
(
|
||||
"minicurl",
|
||||
{
|
||||
"CURL_IMPERSONATE": "edge101",
|
||||
},
|
||||
"libcurl-impersonate-chrome",
|
||||
"edge_101.0.1210.47_win10"
|
||||
),
|
||||
(
|
||||
"minicurl",
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user