mirror of
https://github.com/lwthiker/curl-impersonate.git
synced 2026-09-08 01:41:52 +00:00
Add new Chrome (116) and Firefox (117) versions
This commit is contained in:
@@ -1036,10 +1036,10 @@ index 562c05c99..b99c085d5 100644
|
||||
* Store nghttp2 version info in this buffer.
|
||||
diff --git a/lib/impersonate.c b/lib/impersonate.c
|
||||
new file mode 100644
|
||||
index 000000000..4f5c24f5d
|
||||
index 000000000..a8ea0afa5
|
||||
--- /dev/null
|
||||
+++ b/lib/impersonate.c
|
||||
@@ -0,0 +1,482 @@
|
||||
@@ -0,0 +1,524 @@
|
||||
+#include "curl_setup.h"
|
||||
+
|
||||
+#include <curl/curl.h>
|
||||
@@ -1291,6 +1291,48 @@ index 000000000..4f5c24f5d
|
||||
+ .http2_no_server_push = true
|
||||
+ },
|
||||
+ {
|
||||
+ .target = "chrome116",
|
||||
+ .httpversion = CURL_HTTP_VERSION_2_0,
|
||||
+ .ssl_version = CURL_SSLVERSION_TLSv1_2 | CURL_SSLVERSION_MAX_DEFAULT,
|
||||
+ .ciphers =
|
||||
+ "TLS_AES_128_GCM_SHA256,"
|
||||
+ "TLS_AES_256_GCM_SHA384,"
|
||||
+ "TLS_CHACHA20_POLY1305_SHA256,"
|
||||
+ "ECDHE-ECDSA-AES128-GCM-SHA256,"
|
||||
+ "ECDHE-RSA-AES128-GCM-SHA256,"
|
||||
+ "ECDHE-ECDSA-AES256-GCM-SHA384,"
|
||||
+ "ECDHE-RSA-AES256-GCM-SHA384,"
|
||||
+ "ECDHE-ECDSA-CHACHA20-POLY1305,"
|
||||
+ "ECDHE-RSA-CHACHA20-POLY1305,"
|
||||
+ "ECDHE-RSA-AES128-SHA,"
|
||||
+ "ECDHE-RSA-AES256-SHA,"
|
||||
+ "AES128-GCM-SHA256,"
|
||||
+ "AES256-GCM-SHA384,"
|
||||
+ "AES128-SHA,"
|
||||
+ "AES256-SHA",
|
||||
+ .npn = false,
|
||||
+ .alpn = true,
|
||||
+ .alps = true,
|
||||
+ .tls_permute_extensions = true,
|
||||
+ .tls_session_ticket = true,
|
||||
+ .cert_compression = "brotli",
|
||||
+ .http_headers = {
|
||||
+ "sec-ch-ua: \"Chromium\";v=\"116\", \"Not)A;Brand\";v=\"24\", \"Google Chrome\";v=\"116\"",
|
||||
+ "sec-ch-ua-mobile: ?0",
|
||||
+ "sec-ch-ua-platform: \"Windows\"",
|
||||
+ "Upgrade-Insecure-Requests: 1",
|
||||
+ "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36",
|
||||
+ "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
|
||||
+ "Sec-Fetch-Site: none",
|
||||
+ "Sec-Fetch-Mode: navigate",
|
||||
+ "Sec-Fetch-User: ?1",
|
||||
+ "Sec-Fetch-Dest: document",
|
||||
+ "Accept-Encoding: gzip, deflate, br",
|
||||
+ "Accept-Language: en-US,en;q=0.9"
|
||||
+ },
|
||||
+ .http2_no_server_push = true
|
||||
+ },
|
||||
+ {
|
||||
+ .target = "chrome99_android",
|
||||
+ .httpversion = CURL_HTTP_VERSION_2_0,
|
||||
+ .ssl_version = CURL_SSLVERSION_TLSv1_2 | CURL_SSLVERSION_MAX_DEFAULT,
|
||||
|
||||
Reference in New Issue
Block a user