Upgrade baseline curl to 8.1.1

New curl version includes bugfixes, new options but mainly websocket
support which was long requested in curl impersonate. This commit
attemps to upgrade the baseline curl version to 8.1.1 for the Chrome
version.
This commit is contained in:
lwthiker
2023-05-26 21:59:44 +03:00
parent e987cd6646
commit 8dcee77f04
18 changed files with 679 additions and 391 deletions

View File

@@ -122,7 +122,7 @@ RUN cd ${NGHTTP2_VERSION} && \
make && make install
# Download curl.
ARG CURL_VERSION=curl-7.84.0
ARG CURL_VERSION=curl-8.1.1
RUN curl -o ${CURL_VERSION}.tar.xz https://curl.se/download/${CURL_VERSION}.tar.xz
RUN tar xf ${CURL_VERSION}.tar.xz

View File

@@ -16,7 +16,7 @@ NSS_URL := https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_87_RTM/src/ns
BORING_SSL_COMMIT := 3a667d10e94186fd503966f5638e134fe9fb4080
NGHTTP2_VERSION := nghttp2-1.46.0
NGHTTP2_URL := https://github.com/nghttp2/nghttp2/releases/download/v1.46.0/nghttp2-1.46.0.tar.bz2
CURL_VERSION := curl-7.84.0
CURL_VERSION := curl-8.1.1
brotli_install_dir := $(abspath brotli-$(BROTLI_VERSION)/out/installed)
brotli_static_libs := $(brotli_install_dir)/lib/libbrotlicommon-static.a $(brotli_install_dir)/lib/libbrotlidec-static.a

View File

@@ -67,7 +67,7 @@ RUN cd ${NGHTTP2_VERSION} && \
make && make install
# Download curl.
ARG CURL_VERSION=curl-7.84.0
ARG CURL_VERSION=curl-8.1.1
RUN curl -o ${CURL_VERSION}.tar.xz https://curl.se/download/${CURL_VERSION}.tar.xz
RUN tar xf ${CURL_VERSION}.tar.xz

View File

@@ -64,7 +64,7 @@ RUN cd ${NGHTTP2_VERSION} && \
make && make install
# Download curl.
ARG CURL_VERSION=curl-7.84.0
ARG CURL_VERSION=curl-8.1.1
RUN curl -o ${CURL_VERSION}.tar.xz https://curl.se/download/${CURL_VERSION}.tar.xz
RUN tar xf ${CURL_VERSION}.tar.xz

View File

@@ -21,6 +21,6 @@ dir=${0%/*}
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \
--http2 --false-start --compressed \
--tlsv1.2 --no-npn --alps \
--tlsv1.2 --alps \
--cert-compression brotli \
"$@"

View File

@@ -21,6 +21,6 @@ dir=${0%/*}
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \
--http2 --false-start --compressed \
--tlsv1.2 --no-npn --alps \
--tlsv1.2 --alps \
--cert-compression brotli \
"$@"

View File

@@ -21,6 +21,6 @@ dir=${0%/*}
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \
--http2 --false-start --compressed \
--tlsv1.2 --no-npn --alps \
--tlsv1.2 --alps \
--cert-compression brotli \
"$@"

View File

@@ -21,6 +21,6 @@ dir=${0%/*}
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \
--http2 --http2-no-server-push --false-start --compressed \
--tlsv1.2 --no-npn --alps \
--tlsv1.2 --alps \
--cert-compression brotli \
"$@"

View File

@@ -21,6 +21,6 @@ dir=${0%/*}
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \
--http2 --http2-no-server-push --false-start --compressed \
--tlsv1.2 --no-npn --alps --tls-permute-extensions \
--tlsv1.2 --alps --tls-permute-extensions \
--cert-compression brotli \
"$@"

View File

@@ -21,6 +21,6 @@ dir=${0%/*}
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \
--http2 --false-start --compressed \
--tlsv1.2 --no-npn --alps \
--tlsv1.2 --alps \
--cert-compression brotli \
"$@"

View File

@@ -21,6 +21,6 @@ dir=${0%/*}
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \
--http2 --false-start --compressed \
--tlsv1.2 --no-npn --alps \
--tlsv1.2 --alps \
--cert-compression brotli \
"$@"

View File

@@ -21,6 +21,6 @@ dir=${0%/*}
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \
--http2 --false-start --compressed \
--tlsv1.2 --no-npn --alps \
--tlsv1.2 --alps \
--cert-compression brotli \
"$@"

View File

@@ -21,6 +21,6 @@ dir=${0%/*}
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \
--http2 --false-start --compressed \
--tlsv1.2 --no-npn --alps \
--tlsv1.2 --alps \
--cert-compression brotli \
"$@"

View File

@@ -15,6 +15,6 @@ dir=${0%/*}
-H 'Accept-Language: en-us' \
-H 'Accept-Encoding: gzip, deflate, br' \
--http2 --false-start --compressed \
--tlsv1.0 --no-npn --no-tls-session-ticket \
--tlsv1.0 --no-tls-session-ticket \
--http2-pseudo-headers-order 'mspa' \
"$@"

View File

@@ -15,7 +15,7 @@ dir=${0%/*}
-H 'Accept-Language: en-GB,en-US;q=0.9,en;q=0.8' \
-H 'Accept-Encoding: gzip, deflate, br' \
--http2 --false-start --compressed \
--tlsv1.0 --no-npn --no-tls-session-ticket \
--tlsv1.0 --no-tls-session-ticket \
--cert-compression zlib \
--http2-pseudo-headers-order 'mspa' \
"$@"

File diff suppressed because it is too large Load Diff

View File

@@ -63,7 +63,7 @@ RUN cd ${NGHTTP2_VERSION} && \
make && make install
# Download curl.
ARG CURL_VERSION=curl-7.84.0
ARG CURL_VERSION=curl-8.1.1
RUN curl -o ${CURL_VERSION}.tar.xz https://curl.se/download/${CURL_VERSION}.tar.xz
RUN tar xf ${CURL_VERSION}.tar.xz

View File

@@ -56,7 +56,7 @@ RUN cd ${NGHTTP2_VERSION} && \
make && make install
# Download curl.
ARG CURL_VERSION=curl-7.84.0
ARG CURL_VERSION=curl-8.1.1
RUN curl -o ${CURL_VERSION}.tar.xz https://curl.se/download/${CURL_VERSION}.tar.xz
RUN tar xf ${CURL_VERSION}.tar.xz