lwthiker / curl-impersonate

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

Subrequests with curl_impersonate #191

Closed mobti100 closed 8 months ago

mobti100 commented 9 months ago

Even though curl_impersonate mimics a browser, it does not seem to load subrequests along with main request. Before website implemented cloudflare's WAF, a POST request to https://api-js.datadome.co/js/ that sets a datadome cookie was side loaded with main request (using python's requests) but now it isn't anymore and I get a 403. Using curl_cffi I do get 200 as a response but datadome cookie is not set for some reason. In Swift it does get set without even rendering the webpage, since URLSession uses safari's (webkit) tls settings.