从 Webview Windows 8.1 中的 URI 检索请求数据 [英] Retrieve the request data from URI in Webview Windows 8.1
问题描述
我正在开发一个 Windows 手机 8.1 应用程序,在这种情况下,我应该打开 web 视图让用户输入卡的详细信息.输入并处理卡详细信息后,支付 API 会将交易详细信息作为 POST 请求发送回 webview.无法获取POST数据,尝试了很多方法.
I'm developing a Windows phone 8.1 app and there's this scenario where I should open the webview for the user to enter the card details. Once the card details are entered and processed, the payment API will send the transaction details back as a POST request to the webview. I'm not able to get the POST data, tried so many methods.
如何获取服务器返回的post数据?提前致谢
How do I get the post data returned back from the server? Thanks in Advance
推荐答案
找到了一种方法来做到这一点,实际上服务器 POST 请求具有查询字符串本身中的所有参数
Found a way to do this, actually the Server POST request had all the arguments in the Querystring itself
处理了 webview 的 Navigation_Completed 事件,args URI 将包含所需的所有详细信息
Handled the Navigation_Completed event of the webview, the args URI will have all the details required
这篇关于从 Webview Windows 8.1 中的 URI 检索请求数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!