What I’m trying to do is to build custom web-browser into my windows phone app that handles users’ request differently. I need my code to be notified when a user want’s to send a GET, POST or even ajax request to a URL. Then my code handles this request, applies some modification and dispatches the response to the browser.
What I want is far away from what WebBrowser control provides. Do any of you have any idea how can this possibly be implemented?
Regards.
Are you wanting to write a new browser, or are you trying to “intercept” calls from the built-in browser?
If you’re creating you’re own then you know based on the URL if it’s a GET, POST etc. since you’ll be handing all socket connections yourself. It’s certainly doable, though it’s a hell of a lot of work – just look at how much work other teams have put into other browsers. Starting with someone else’s code base (web kit, opera, etc) would probably be a good short cut to getting the parsing, rendering, etc. working.
If you’re simply wanting to create a shim that intercepts calls and massages the return then it can’t be done on Windows Phone. You don’t have access to the NDIS layer (a miniport intermediate driver would allow it on other systems).