Welcome Guest Search | Active Topics | Sign In | Register

How to spy on REST calls from JavaScript Options
tombarreras
Posted: Tuesday, April 5, 2016 11:52:27 AM
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
eo_support
Posted: Tuesday, April 5, 2016 11:54:24 AM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.