由于 Flash 插件已达到 EOL,因此仍然使用我的 RIA 的唯一方法是使用 Flash 播放器的独立版本。
在测试迁移时,我注意到以下代码存在问题:
var request:URLRequest = new URLRequest("/utils/function");
request.contentType = "application/x-www-form-urlencoded";
request.method = URLRequestMethod.POST;
var data:URLVariables = new URLVariables();
data.x = encodeURIComponent(1);
data.y = encodeURIComponent(2);
data.z = encodeURIComponent('some value');
request.data = data;
navigateToURL(request, "_blank");
独立版本的 flash (v30.0.0.134) 发出 GET 请求,而不是指示的 POST 方法。浏览器插件 (v32.0.0.238) 作为 POST 请求在新选项卡中正确打开页面。
为什么独立闪存将我的请求转换为 GET?有没有人可以对这个问题有所了解?