mirror of
https://github.com/depler/curl-impersonate-win.git
synced 2025-08-03 02:30:37 +00:00
0e50d8842d485c89d8662fee3b1d1c7b1f98a9da
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:
- Curl (https://github.com/curl/curl): v7.84.0
- BoringSSL (https://github.com/google/boringssl): 3a667d10e94186fd503966f5638e134fe9fb4080
Environment
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
Build
- Download and unpack curl and boringssl source code into according folders (see versions)
- Run scripts
patch_curl.bat
andpatch_boringssl.bat
to 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:
Run
There are couple scripts inside release archive. Each of them can impersonate different browser. For example:
curl_chrome104 https://www.google.com/search?q=cat --output google.html
curl_safari15_5 https://www.apple.com --output apple.html
Languages
Batchfile
100%