RusKnyaz / Optimus

Optimus is headless Web Browser fully implemented on .net.
MIT License
82 stars 8 forks source link

Optimus and Cloudflare #48

Open Uceef94 opened 4 years ago

Uceef94 commented 4 years ago

Hi,

I'm willing to switch to Optimus but sadly there is a lack on documentation, so I hope someone can help answering the following questions:

1- Does Optimus handle well cloudflare based websites? 2- How to enable cookies? 3- Does it handle auto-redirection, if yes how? 4- How to inject javascript?

Thank you in advance!

RusKnyaz commented 4 years ago
  1. I don't know what cloudflare is, but in theory optimus can work with any site. If something doesn't work, it is most likely due to some kind of bug.
  2. Cookies is always enabled
  3. For http interaction I use .NET's HttpClient. It supports redirect. But it doesn't work like it does in your favorite browser.
  4. Try to look here: https://github.com/RusKnyaz/Optimus/blob/develop/docs/snippets.md#pre-define-javascript-functions
RusKnyaz commented 4 years ago

If you are interested in usage scenarios, I recommend looking at this sample. It utilizes most of the Optimus features