如何解决Flutter postfrom 数据
我知道如何解析 JSON。 从 API 响应中,我得到了这个 JSON HTMLForm 值,我需要在其中发布确切的表单,以便它可以转到 url 并使用表单中的数据构建页面以进行下一步处理。 我怎么能用颤振做到这一点?
{
"UrlGet": null,"HtmlForm": "<html><head></head><body onload=\"document.Form1.submit()\">\r\n<form name=\"Form1\" method=\"POST\" action=\"https://s.u.com/gwprocess/v3/process.php\" enctype=\"application/x-www-form-urlencoded\" target=\"_parent\">\r\n<input name=\"store_id\" type=\"hidden\" value=\"kil\">\r\n<input name=\"tran_id\" type=\"hidden\" value=\"1240736_2035_032C3D\">\r\n<input name=\"total_amount\" type=\"hidden\" value=\"6500\">\r\n<input name=\"currency\" type=\"hidden\" value=\"BDT\">\r\n<input name=\"version\" type=\"hidden\" value=\"2.00\">\r\n<input name=\"success_url\" type=\"hidden\" value=\"http://ttin.com/TTIDotNet/WebService/Internal/OnlinePaymentWebService/CommerzResponse.ashx?companyId=2035&idBankTransaction=1240736&idCompany=2035&userId=1034\">\r\n<input name=\"fail_url\" type=\"hidden\" value=\"http://ttin.com/TTIDotNet/WebService/Internal/OnlinePaymentWebService/CommerzResponse.ashx?companyId=2035&idBankTransaction=1240736&idCompany=2035&userId=1034\">\r\n<input name=\"cancel_url\" type=\"hidden\" value=\"http://ttin.com/TTIDotNet/WebService/Internal/OnlinePaymentWebService/LCommerzResponse.ashx?companyId=2035&idBankTransaction=1240736&idCompany=2035&userId=1034&cancel=1\">\r\n</form>\r\n</body></html>\r\n","Extensions": null
},
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。