在Adobe应用程序中,我面临一些有关SSL (HTTPS调用)的问题。Adobe上有一个bug,与我遇到的问题完全相同:- https://forums.adobe.com/thread/1116924
推荐的解决方案是使用as3crypto的SSL (除非Adobe修复了这个问题--他们已经两年多没有这么做了)。
有人能帮我做同样的事吗?现在,我的HTTPService使用内置于Adobe功能中的默认功能,它看起来如下:-
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中实现相同的功能呢?任何示例/代码指针都将非常有用。
发布于 2015-04-11 20:22:47
没有百分之百的工作解决方案,至少我不知道。当我需要Adobe中的https时,我使用了as3httpclient库,其中AS3Crypto用于执行TLSSocket。这比写你自己的要容易得多。但是要小心,它是有问题的,而且在某些情况下是行不通的。
编辑:有可用的文档,这里对我来说已经足够了,http和https请求之间没有什么区别(除了URL)。
https://stackoverflow.com/questions/29558793
复制相似问题