mirror of
https://github.com/lwthiker/curl-impersonate.git
synced 2025-08-04 19:02:28 +00:00
Remove --false-start flag
Remove the --false-start flag completely. In the Chrome version it has no affect, and in the Firefox version it may cause connection errors. This flag doesn't seem to affect TLS or HTTP signatures so is safe to remove. The flag seems to cause connection errors with some http/2 servers. The server chooses http/2 based on alpn but curl initiates a http/1.1 connection instead. This is an upstream bug in curl that affects us as well.
This commit is contained in:
@@ -20,7 +20,7 @@ dir=${0%/*}
|
|||||||
-H 'Sec-Fetch-Dest: document' \
|
-H 'Sec-Fetch-Dest: document' \
|
||||||
-H 'Accept-Encoding: gzip, deflate, br' \
|
-H 'Accept-Encoding: gzip, deflate, br' \
|
||||||
-H 'Accept-Language: en-US,en;q=0.9' \
|
-H 'Accept-Language: en-US,en;q=0.9' \
|
||||||
--http2 --false-start --compressed \
|
--http2 --compressed \
|
||||||
--tlsv1.2 --alps \
|
--tlsv1.2 --alps \
|
||||||
--cert-compression brotli \
|
--cert-compression brotli \
|
||||||
"$@"
|
"$@"
|
||||||
|
@@ -20,7 +20,7 @@ dir=${0%/*}
|
|||||||
-H 'Sec-Fetch-Dest: document' \
|
-H 'Sec-Fetch-Dest: document' \
|
||||||
-H 'Accept-Encoding: gzip, deflate, br' \
|
-H 'Accept-Encoding: gzip, deflate, br' \
|
||||||
-H 'Accept-Language: en-US,en;q=0.9' \
|
-H 'Accept-Language: en-US,en;q=0.9' \
|
||||||
--http2 --false-start --compressed \
|
--http2 --compressed \
|
||||||
--tlsv1.2 --alps \
|
--tlsv1.2 --alps \
|
||||||
--cert-compression brotli \
|
--cert-compression brotli \
|
||||||
"$@"
|
"$@"
|
||||||
|
@@ -20,7 +20,7 @@ dir=${0%/*}
|
|||||||
-H 'Sec-Fetch-Dest: document' \
|
-H 'Sec-Fetch-Dest: document' \
|
||||||
-H 'Accept-Encoding: gzip, deflate, br' \
|
-H 'Accept-Encoding: gzip, deflate, br' \
|
||||||
-H 'Accept-Language: en-US,en;q=0.9' \
|
-H 'Accept-Language: en-US,en;q=0.9' \
|
||||||
--http2 --false-start --compressed \
|
--http2 --compressed \
|
||||||
--tlsv1.2 --alps \
|
--tlsv1.2 --alps \
|
||||||
--cert-compression brotli \
|
--cert-compression brotli \
|
||||||
"$@"
|
"$@"
|
||||||
|
@@ -20,7 +20,7 @@ dir=${0%/*}
|
|||||||
-H 'Sec-Fetch-Dest: document' \
|
-H 'Sec-Fetch-Dest: document' \
|
||||||
-H 'Accept-Encoding: gzip, deflate, br' \
|
-H 'Accept-Encoding: gzip, deflate, br' \
|
||||||
-H 'Accept-Language: en-US,en;q=0.9' \
|
-H 'Accept-Language: en-US,en;q=0.9' \
|
||||||
--http2 --http2-no-server-push --false-start --compressed \
|
--http2 --http2-no-server-push --compressed \
|
||||||
--tlsv1.2 --alps \
|
--tlsv1.2 --alps \
|
||||||
--cert-compression brotli \
|
--cert-compression brotli \
|
||||||
"$@"
|
"$@"
|
||||||
|
@@ -20,7 +20,7 @@ dir=${0%/*}
|
|||||||
-H 'Sec-Fetch-Dest: document' \
|
-H 'Sec-Fetch-Dest: document' \
|
||||||
-H 'Accept-Encoding: gzip, deflate, br' \
|
-H 'Accept-Encoding: gzip, deflate, br' \
|
||||||
-H 'Accept-Language: en-US,en;q=0.9' \
|
-H 'Accept-Language: en-US,en;q=0.9' \
|
||||||
--http2 --http2-no-server-push --false-start --compressed \
|
--http2 --http2-no-server-push --compressed \
|
||||||
--tlsv1.2 --alps --tls-permute-extensions \
|
--tlsv1.2 --alps --tls-permute-extensions \
|
||||||
--cert-compression brotli \
|
--cert-compression brotli \
|
||||||
"$@"
|
"$@"
|
||||||
|
@@ -20,7 +20,7 @@ dir=${0%/*}
|
|||||||
-H 'Sec-Fetch-Dest: document' \
|
-H 'Sec-Fetch-Dest: document' \
|
||||||
-H 'Accept-Encoding: gzip, deflate, br' \
|
-H 'Accept-Encoding: gzip, deflate, br' \
|
||||||
-H 'Accept-Language: en-US,en;q=0.9' \
|
-H 'Accept-Language: en-US,en;q=0.9' \
|
||||||
--http2 --http2-no-server-push --false-start --compressed \
|
--http2 --http2-no-server-push --compressed \
|
||||||
--tlsv1.2 --alps --tls-permute-extensions \
|
--tlsv1.2 --alps --tls-permute-extensions \
|
||||||
--cert-compression brotli \
|
--cert-compression brotli \
|
||||||
"$@"
|
"$@"
|
||||||
|
@@ -20,7 +20,7 @@ dir=${0%/*}
|
|||||||
-H 'Sec-Fetch-Dest: document' \
|
-H 'Sec-Fetch-Dest: document' \
|
||||||
-H 'Accept-Encoding: gzip, deflate, br' \
|
-H 'Accept-Encoding: gzip, deflate, br' \
|
||||||
-H 'Accept-Language: en-US,en;q=0.9' \
|
-H 'Accept-Language: en-US,en;q=0.9' \
|
||||||
--http2 --false-start --compressed \
|
--http2 --compressed \
|
||||||
--tlsv1.2 --alps \
|
--tlsv1.2 --alps \
|
||||||
--cert-compression brotli \
|
--cert-compression brotli \
|
||||||
"$@"
|
"$@"
|
||||||
|
@@ -20,7 +20,7 @@ dir=${0%/*}
|
|||||||
-H 'Sec-Fetch-Dest: document' \
|
-H 'Sec-Fetch-Dest: document' \
|
||||||
-H 'Accept-Encoding: gzip, deflate, br' \
|
-H 'Accept-Encoding: gzip, deflate, br' \
|
||||||
-H 'Accept-Language: en-US,en;q=0.9' \
|
-H 'Accept-Language: en-US,en;q=0.9' \
|
||||||
--http2 --false-start --compressed \
|
--http2 --compressed \
|
||||||
--tlsv1.2 --alps \
|
--tlsv1.2 --alps \
|
||||||
--cert-compression brotli \
|
--cert-compression brotli \
|
||||||
"$@"
|
"$@"
|
||||||
|
@@ -20,7 +20,7 @@ dir=${0%/*}
|
|||||||
-H 'Sec-Fetch-Dest: document' \
|
-H 'Sec-Fetch-Dest: document' \
|
||||||
-H 'Accept-Encoding: gzip, deflate, br' \
|
-H 'Accept-Encoding: gzip, deflate, br' \
|
||||||
-H 'Accept-Language: en-US,en;q=0.9' \
|
-H 'Accept-Language: en-US,en;q=0.9' \
|
||||||
--http2 --false-start --compressed \
|
--http2 --compressed \
|
||||||
--tlsv1.2 --alps \
|
--tlsv1.2 --alps \
|
||||||
--cert-compression brotli \
|
--cert-compression brotli \
|
||||||
"$@"
|
"$@"
|
||||||
|
@@ -20,7 +20,7 @@ dir=${0%/*}
|
|||||||
-H 'Sec-Fetch-Dest: document' \
|
-H 'Sec-Fetch-Dest: document' \
|
||||||
-H 'Accept-Encoding: gzip, deflate, br' \
|
-H 'Accept-Encoding: gzip, deflate, br' \
|
||||||
-H 'Accept-Language: en-US,en;q=0.9' \
|
-H 'Accept-Language: en-US,en;q=0.9' \
|
||||||
--http2 --false-start --compressed \
|
--http2 --compressed \
|
||||||
--tlsv1.2 --alps \
|
--tlsv1.2 --alps \
|
||||||
--cert-compression brotli \
|
--cert-compression brotli \
|
||||||
"$@"
|
"$@"
|
||||||
|
@@ -14,7 +14,7 @@ dir=${0%/*}
|
|||||||
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' \
|
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' \
|
||||||
-H 'Accept-Language: en-us' \
|
-H 'Accept-Language: en-us' \
|
||||||
-H 'Accept-Encoding: gzip, deflate, br' \
|
-H 'Accept-Encoding: gzip, deflate, br' \
|
||||||
--http2 --false-start --compressed \
|
--http2 --compressed \
|
||||||
--tlsv1.0 --no-tls-session-ticket \
|
--tlsv1.0 --no-tls-session-ticket \
|
||||||
--http2-pseudo-headers-order 'mspa' \
|
--http2-pseudo-headers-order 'mspa' \
|
||||||
"$@"
|
"$@"
|
||||||
|
@@ -14,7 +14,7 @@ dir=${0%/*}
|
|||||||
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' \
|
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' \
|
||||||
-H 'Accept-Language: en-GB,en-US;q=0.9,en;q=0.8' \
|
-H 'Accept-Language: en-GB,en-US;q=0.9,en;q=0.8' \
|
||||||
-H 'Accept-Encoding: gzip, deflate, br' \
|
-H 'Accept-Encoding: gzip, deflate, br' \
|
||||||
--http2 --false-start --compressed \
|
--http2 --compressed \
|
||||||
--tlsv1.0 --no-tls-session-ticket \
|
--tlsv1.0 --no-tls-session-ticket \
|
||||||
--cert-compression zlib \
|
--cert-compression zlib \
|
||||||
--http2-pseudo-headers-order 'mspa' \
|
--http2-pseudo-headers-order 'mspa' \
|
||||||
|
@@ -50,7 +50,7 @@ The important part of the script is:
|
|||||||
-H 'Sec-Fetch-Dest: document' \
|
-H 'Sec-Fetch-Dest: document' \
|
||||||
-H 'Accept-Encoding: gzip, deflate, br' \
|
-H 'Accept-Encoding: gzip, deflate, br' \
|
||||||
-H 'Accept-Language: en-US,en;q=0.9' \
|
-H 'Accept-Language: en-US,en;q=0.9' \
|
||||||
--http2 --false-start --compressed \
|
--http2 --compressed \
|
||||||
--tlsv1.2 --no-npn --alps \
|
--tlsv1.2 --no-npn --alps \
|
||||||
--cert-compression brotli \
|
--cert-compression brotli \
|
||||||
"$@"
|
"$@"
|
||||||
|
@@ -18,5 +18,5 @@ dir=${0%/*}
|
|||||||
-H 'Sec-Fetch-Site: none' \
|
-H 'Sec-Fetch-Site: none' \
|
||||||
-H 'Sec-Fetch-User: ?1' \
|
-H 'Sec-Fetch-User: ?1' \
|
||||||
-H 'TE: Trailers' \
|
-H 'TE: Trailers' \
|
||||||
--http2 --false-start --compressed \
|
--http2 --compressed \
|
||||||
"$@"
|
"$@"
|
||||||
|
@@ -18,5 +18,5 @@ dir=${0%/*}
|
|||||||
-H 'Sec-Fetch-Site: none' \
|
-H 'Sec-Fetch-Site: none' \
|
||||||
-H 'Sec-Fetch-User: ?1' \
|
-H 'Sec-Fetch-User: ?1' \
|
||||||
-H 'TE: Trailers' \
|
-H 'TE: Trailers' \
|
||||||
--http2 --false-start --compressed \
|
--http2 --compressed \
|
||||||
"$@"
|
"$@"
|
||||||
|
@@ -18,5 +18,5 @@ dir=${0%/*}
|
|||||||
-H 'Sec-Fetch-Site: none' \
|
-H 'Sec-Fetch-Site: none' \
|
||||||
-H 'Sec-Fetch-User: ?1' \
|
-H 'Sec-Fetch-User: ?1' \
|
||||||
-H 'TE: Trailers' \
|
-H 'TE: Trailers' \
|
||||||
--http2 --false-start --compressed \
|
--http2 --compressed \
|
||||||
"$@"
|
"$@"
|
||||||
|
@@ -18,5 +18,5 @@ dir=${0%/*}
|
|||||||
-H 'Sec-Fetch-Site: none' \
|
-H 'Sec-Fetch-Site: none' \
|
||||||
-H 'Sec-Fetch-User: ?1' \
|
-H 'Sec-Fetch-User: ?1' \
|
||||||
-H 'TE: Trailers' \
|
-H 'TE: Trailers' \
|
||||||
--http2 --false-start --compressed \
|
--http2 --compressed \
|
||||||
"$@"
|
"$@"
|
||||||
|
@@ -18,5 +18,5 @@ dir=${0%/*}
|
|||||||
-H 'Sec-Fetch-Site: none' \
|
-H 'Sec-Fetch-Site: none' \
|
||||||
-H 'Sec-Fetch-User: ?1' \
|
-H 'Sec-Fetch-User: ?1' \
|
||||||
-H 'TE: Trailers' \
|
-H 'TE: Trailers' \
|
||||||
--http2 --false-start --compressed \
|
--http2 --compressed \
|
||||||
"$@"
|
"$@"
|
||||||
|
@@ -18,5 +18,5 @@ dir=${0%/*}
|
|||||||
-H 'Sec-Fetch-Site: none' \
|
-H 'Sec-Fetch-Site: none' \
|
||||||
-H 'Sec-Fetch-User: ?1' \
|
-H 'Sec-Fetch-User: ?1' \
|
||||||
-H 'TE: Trailers' \
|
-H 'TE: Trailers' \
|
||||||
--http2 --false-start --compressed \
|
--http2 --compressed \
|
||||||
"$@"
|
"$@"
|
||||||
|
@@ -18,5 +18,5 @@ dir=${0%/*}
|
|||||||
-H 'Sec-Fetch-Site: none' \
|
-H 'Sec-Fetch-Site: none' \
|
||||||
-H 'Sec-Fetch-User: ?1' \
|
-H 'Sec-Fetch-User: ?1' \
|
||||||
-H 'TE: Trailers' \
|
-H 'TE: Trailers' \
|
||||||
--http2 --false-start --compressed \
|
--http2 --compressed \
|
||||||
"$@"
|
"$@"
|
||||||
|
Reference in New Issue
Block a user