mirror of
https://github.com/lwthiker/curl-impersonate.git
synced 2025-08-09 13:19:37 +00:00
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:
@@ -122,7 +122,7 @@ RUN cd ${NGHTTP2_VERSION} && \
|
|||||||
make && make install
|
make && make install
|
||||||
|
|
||||||
# Download curl.
|
# 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 curl -o ${CURL_VERSION}.tar.xz https://curl.se/download/${CURL_VERSION}.tar.xz
|
||||||
RUN tar xf ${CURL_VERSION}.tar.xz
|
RUN tar xf ${CURL_VERSION}.tar.xz
|
||||||
|
|
||||||
|
@@ -16,7 +16,7 @@ NSS_URL := https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_87_RTM/src/ns
|
|||||||
BORING_SSL_COMMIT := 3a667d10e94186fd503966f5638e134fe9fb4080
|
BORING_SSL_COMMIT := 3a667d10e94186fd503966f5638e134fe9fb4080
|
||||||
NGHTTP2_VERSION := nghttp2-1.46.0
|
NGHTTP2_VERSION := nghttp2-1.46.0
|
||||||
NGHTTP2_URL := https://github.com/nghttp2/nghttp2/releases/download/v1.46.0/nghttp2-1.46.0.tar.bz2
|
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_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
|
brotli_static_libs := $(brotli_install_dir)/lib/libbrotlicommon-static.a $(brotli_install_dir)/lib/libbrotlidec-static.a
|
||||||
|
@@ -67,7 +67,7 @@ RUN cd ${NGHTTP2_VERSION} && \
|
|||||||
make && make install
|
make && make install
|
||||||
|
|
||||||
# Download curl.
|
# 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 curl -o ${CURL_VERSION}.tar.xz https://curl.se/download/${CURL_VERSION}.tar.xz
|
||||||
RUN tar xf ${CURL_VERSION}.tar.xz
|
RUN tar xf ${CURL_VERSION}.tar.xz
|
||||||
|
|
||||||
|
@@ -64,7 +64,7 @@ RUN cd ${NGHTTP2_VERSION} && \
|
|||||||
make && make install
|
make && make install
|
||||||
|
|
||||||
# Download curl.
|
# 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 curl -o ${CURL_VERSION}.tar.xz https://curl.se/download/${CURL_VERSION}.tar.xz
|
||||||
RUN tar xf ${CURL_VERSION}.tar.xz
|
RUN tar xf ${CURL_VERSION}.tar.xz
|
||||||
|
|
||||||
|
@@ -21,6 +21,6 @@ dir=${0%/*}
|
|||||||
-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 --false-start --compressed \
|
||||||
--tlsv1.2 --no-npn --alps \
|
--tlsv1.2 --alps \
|
||||||
--cert-compression brotli \
|
--cert-compression brotli \
|
||||||
"$@"
|
"$@"
|
||||||
|
@@ -21,6 +21,6 @@ dir=${0%/*}
|
|||||||
-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 --false-start --compressed \
|
||||||
--tlsv1.2 --no-npn --alps \
|
--tlsv1.2 --alps \
|
||||||
--cert-compression brotli \
|
--cert-compression brotli \
|
||||||
"$@"
|
"$@"
|
||||||
|
@@ -21,6 +21,6 @@ dir=${0%/*}
|
|||||||
-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 --false-start --compressed \
|
||||||
--tlsv1.2 --no-npn --alps \
|
--tlsv1.2 --alps \
|
||||||
--cert-compression brotli \
|
--cert-compression brotli \
|
||||||
"$@"
|
"$@"
|
||||||
|
@@ -21,6 +21,6 @@ dir=${0%/*}
|
|||||||
-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 --false-start --compressed \
|
||||||
--tlsv1.2 --no-npn --alps \
|
--tlsv1.2 --alps \
|
||||||
--cert-compression brotli \
|
--cert-compression brotli \
|
||||||
"$@"
|
"$@"
|
||||||
|
@@ -21,6 +21,6 @@ dir=${0%/*}
|
|||||||
-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 --false-start --compressed \
|
||||||
--tlsv1.2 --no-npn --alps --tls-permute-extensions \
|
--tlsv1.2 --alps --tls-permute-extensions \
|
||||||
--cert-compression brotli \
|
--cert-compression brotli \
|
||||||
"$@"
|
"$@"
|
||||||
|
@@ -21,6 +21,6 @@ dir=${0%/*}
|
|||||||
-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 --false-start --compressed \
|
||||||
--tlsv1.2 --no-npn --alps \
|
--tlsv1.2 --alps \
|
||||||
--cert-compression brotli \
|
--cert-compression brotli \
|
||||||
"$@"
|
"$@"
|
||||||
|
@@ -21,6 +21,6 @@ dir=${0%/*}
|
|||||||
-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 --false-start --compressed \
|
||||||
--tlsv1.2 --no-npn --alps \
|
--tlsv1.2 --alps \
|
||||||
--cert-compression brotli \
|
--cert-compression brotli \
|
||||||
"$@"
|
"$@"
|
||||||
|
@@ -21,6 +21,6 @@ dir=${0%/*}
|
|||||||
-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 --false-start --compressed \
|
||||||
--tlsv1.2 --no-npn --alps \
|
--tlsv1.2 --alps \
|
||||||
--cert-compression brotli \
|
--cert-compression brotli \
|
||||||
"$@"
|
"$@"
|
||||||
|
@@ -21,6 +21,6 @@ dir=${0%/*}
|
|||||||
-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 --false-start --compressed \
|
||||||
--tlsv1.2 --no-npn --alps \
|
--tlsv1.2 --alps \
|
||||||
--cert-compression brotli \
|
--cert-compression brotli \
|
||||||
"$@"
|
"$@"
|
||||||
|
@@ -15,6 +15,6 @@ dir=${0%/*}
|
|||||||
-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 --false-start --compressed \
|
||||||
--tlsv1.0 --no-npn --no-tls-session-ticket \
|
--tlsv1.0 --no-tls-session-ticket \
|
||||||
--http2-pseudo-headers-order 'mspa' \
|
--http2-pseudo-headers-order 'mspa' \
|
||||||
"$@"
|
"$@"
|
||||||
|
@@ -15,7 +15,7 @@ dir=${0%/*}
|
|||||||
-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 --false-start --compressed \
|
||||||
--tlsv1.0 --no-npn --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' \
|
||||||
"$@"
|
"$@"
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -63,7 +63,7 @@ RUN cd ${NGHTTP2_VERSION} && \
|
|||||||
make && make install
|
make && make install
|
||||||
|
|
||||||
# Download curl.
|
# 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 curl -o ${CURL_VERSION}.tar.xz https://curl.se/download/${CURL_VERSION}.tar.xz
|
||||||
RUN tar xf ${CURL_VERSION}.tar.xz
|
RUN tar xf ${CURL_VERSION}.tar.xz
|
||||||
|
|
||||||
|
@@ -56,7 +56,7 @@ RUN cd ${NGHTTP2_VERSION} && \
|
|||||||
make && make install
|
make && make install
|
||||||
|
|
||||||
# Download curl.
|
# 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 curl -o ${CURL_VERSION}.tar.xz https://curl.se/download/${CURL_VERSION}.tar.xz
|
||||||
RUN tar xf ${CURL_VERSION}.tar.xz
|
RUN tar xf ${CURL_VERSION}.tar.xz
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user