A special build of curl for Windows that can impersonate Chrome and Safari
Go to file
2024-02-11 20:08:26 +03:00
boringssl_original@3a667d10e9 Submodules BoringSSL and Curl with copy script (#8) 2022-12-30 12:15:58 +03:00
curl_original@1561d06752 curl-impersonate 2024-02-11 19:14:11 +03:00
patch curl-impersonate 2024-02-11 19:14:11 +03:00
run code 2022-09-04 12:36:23 +03:00
.gitignore code 2022-09-03 19:28:42 +03:00
.gitmodules Submodules BoringSSL and Curl with copy script (#8) 2022-12-30 12:15:58 +03:00
build.bat build tweaks 2024-02-11 20:02:32 +03:00
copy_and_patch.bat code 2023-02-27 11:43:38 +03:00
msys2.txt Add files via upload 2022-09-03 16:56:35 +03:00
patch_boringssl.bat code 2023-02-27 11:43:38 +03:00
patch_curl.bat build tweaks 2024-02-11 20:02:05 +03:00
README.md Update README.md 2024-02-11 20:08:26 +03:00

curl-impersonate-win

A special build of curl for Windows that can impersonate Chrome and Safari.

Original idea and patches from https://github.com/lwthiker/curl-impersonate

Version

Current version based on:

Environment

MSYS2 is needed to build binaries. Steps:

  1. Download and install MSYS2 (https://www.msys2.org/) into folder c:\msys64\
  2. Run MSYS2 from start menu and update packages with command: pacman -Suy
  3. Install additional packages: pacman -S patch mingw-w64-x86_64-make mingw-w64-x86_64-cmake mingw-w64-x86_64-nasm mingw-w64-x86_64-gcc mingw-w64-x86_64-go

Build

  1. Clone this repository with --recursive attribute to get BoringSSL and Curl submodules.
  2. Run script copy_and_patch.bat to copy original source codes to patchable directories and patch source code.
  3. Run script build.bat to build binaries. Ready to use binaries are located within curl\bin folder.

In case if everything goes fine you should see this:

image

Run

Executables and scripts are located inside release archive. Scripts can impersonate different browser, for example:

curl_chrome104 --url https://www.google.com/search?q=cat --output google.html

curl_safari15_5 --url https://www.apple.com --output apple.html