lwthiker / curl-impersonate

curl-impersonate: A special build of curl that can impersonate Chrome & Firefox
MIT License
3.46k stars 229 forks source link

How do I set the options for libcurl? #120

Open SecretiveDeveloper opened 1 year ago

SecretiveDeveloper commented 1 year ago

How do I set the options for libcurl to match Google Chrome 104?

It is written in the documentation that these options are changed: CURLOPT_HTTP_VERSION, CURLOPT_SSLVERSION, CURLOPT_SSL_CIPHER_LIST, CURLOPT_SSL_EC_CURVES, CURLOPT_SSL_ENABLE_NPN, CURLOPT_SSL_ENABLE_ALPN, CURLOPT_HTTPBASEHEADER, CURLOPT_HTTP2_PSEUDO_HEADERS_ORDER, CURLOPT_SSL_ENABLE_ALPS, CURLOPT_SSL_SIG_HASH_ALGS, CURLOPT_SSL_CERT_COMPRESSION, CURLOPT_SSL_ENABLE_TICKET.

But what exactly should I write in these settings to match the Google Chrome 104 fingerprint?

lwthiker commented 1 year ago

Hi,

Sorry for the late reply. You don't need to set these values manually if you use libcurl-impersonate. You can use two methods that will set them correctly for you:

Please refer to the Advanced Usage section of the README for more details.

tyyykkkeeessshhaaaa commented 1 year ago

hello, i am having a similar issue with implementing curl-impersonate. I am trying to add the custom version of libcurl to my project using visual studio 2019, any guidance? (Windows 10)