RusKnyaz / Optimus

Optimus is headless Web Browser fully implemented on .net.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Optimus and Cloudflare

Uceef94 opened this issue · comments

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!

  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

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