0

我在 Adob​​e Air 应用程序中遇到了一些关于 SSL(HTTPS 调用)的问题。Adobe 的列表中有一个错误,它与我遇到的完全相同的问题:- https://forums.adobe.com/thread/1116924

推荐的解决方案(除非 Adob​​e 修复了这个问题——他们已经 2 年多没有这样做了)是使用 as3crypto 的 SSL。

这里的任何人都可以帮助我吗?现在,我的 HTTPService 使用 Adob​​e 的 SSL 功能中的默认内置功能,如下所示:-

var params:Object = getPOSTParameters();
var _httpservice:HttpService = new HTTPService();
            _httpservice.url = "https://myserver_url";
            _httpservice.resultFormat = "text";
            _httpservice.contentType="application/x-www-form-urlencoded";
            _httpservice.method = "POST";
            _httpservice.concurrency = "multiple";
            _httpservice.requestTimeout=600000;
            _httpservice.showBusyCursor = false;
            _httpservice.addEventListener(IOErrorEvent.IO_ERROR, httpIOError);
            _httpservice.addEventListener(HTTPStatusEvent.HTTP_RESPONSE_STATUS, httpResponseStatus);
var responder:Responder = new Responder(onResult, onError);
            var token:AsyncToken = _httpservice.send(params);
            token.addResponder(responder);

我应该如何使用 as3crypto 实现相同的功能?任何示例/代码指针都会非常有帮助

4

1 回答 1

1

没有 100% 可行的解决方案,至少我不知道。当我在 Adob​​e Flash 中需要 https 时,我使用了 as3httpclient库,其中 AS3Crypto 用于实现 TLSSocket。这比自己写要容易得多。但要注意它有问题,并且在某些情况下不起作用。

编辑:这里有可用的文档对我来说已经足够了,http 和 https 请求之间没有区别(URL 除外)。

于 2015-04-11T20:22:47.430 回答