Windows phone WebBrowser.Navigating event form data

后端 未结 1 1593

I have added a handler to WebBrowser.Navigating event and noticed it\'s being fired also for POST requests. In this case e.Uri is equal to the current Url of the page but there

1条回答
  •  深忆病人
    2021-01-22 19:40

    Based on what I've read recently, access to the Request and Response objects is not possible with WP7 WebBrowser for the same reason as the full framework. Basically it was never implemented.

    One technique that can theoretically be used to access the form data is the use of a local proxy to intercept requests. I believe this requires the use of a low level socket server on WP7. This is feasible however I'm not sure on whether it's possible to change the phone proxy address programmatically as I've ever attempted it.

    Actually one more option. I just came across this, apparently you can use SaveToString to save the current document (on navigating). This would allow you to parse the form data just before the form is submitted.

    0 讨论(0)
提交回复
热议问题