Rank: Newbie Groups: Member
Joined: 4/5/2016 Posts: 1
|
Within a .NET application, I need to spy on REST calls made by JavaScript on a page hosted by the EO Web Browser, in order to run some custom code after the call has completed. It appears that the only way to do this is to create a custom resource handler that intercepts the REST call and writes its own response, a la http://www.essentialobjects.com/doc/webbrowser/advanced/resource_handler.aspx. I’ll have to pass along the REST call in .NET, then run the custom code. Is there a better way to do this? Thanks
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
You can use custom resource handler for that. You can also handle WebView.BeforeRequestLoad event. That event will be fired for all HTTP requests, including those make by JavaScript.
Thanks!
|