mirror of
https://github.com/lwthiker/curl-impersonate.git
synced 2026-10-10 19:36:32 +00:00
Patch generated from https://github.com/lwthiker/curl/commit/e8cd43c8ebd2624b3c635ec96b165c28f675cdf2 Add curl_easy_impersonate() API function that sets the needed options on the curl 'easy' handle. It sets the various TLS options needed for impersonation and the HTTP headers that the browser sends by default. In addition, libcurl will check for the environment variable CURL_IMPERSONATE when curl_easy_init() is called, and if it exists it will call curl_easy_impersonate() internally. This theoretically allows replacing an existing libcurl by setting the LD_LIBRARY_PATH and CURL_IMPERSONATE env vars, without having to recompile the app.