A special build of curl for Windows that can impersonate Chrome and Safari.
Original idea and patches from https://github.com/lwthiker/curl-impersonate
Current version based on:
- Curl (https://github.com/curl/curl): v8.1.1
- BoringSSL (https://github.com/google/boringssl): 3a667d10e94186fd503966f5638e134fe9fb4080
- curl-impersonate (https://github.com/lwthiker/curl-impersonate): v0.6.0
MSYS2 is needed to build binaries. Steps:
- Download and install MSYS2 (https://www.msys2.org/) into folder
c:\msys64\
- Run MSYS2 from start menu and update packages with command:
pacman -Suy
- 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
- Clone this repository with --recursive attribute to get BoringSSL and Curl submodules.
- Run script
copy_and_patch.bat
to copy original source codes to patchable directories and patch source code. - Run script
build.bat
to build binaries. Ready to use binaries are located withincurl\bin
folder.
In case if everything goes fine you should see this:
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