Ivan-Mark Debono
Ivan-Mark Debono

Reputation: 16320

How to get request headers from the CefSharp browser?

How can I retrieve the request headers when sending a POST request using the CefSharp browser?

Do I need to subscribe to an event?

Upvotes: 0

Views: 4035

Answers (1)

amaitland
amaitland

Reputation: 4420

Try implementing IRequestHandler.OnBeforeBrowse, you should have access to the request before it's sent to the server.

https://github.com/cefsharp/CefSharp/blob/cefsharp/43/CefSharp/IRequestHandler.cs#L23

Upvotes: 1

Related Questions