我有一个在 flex 和 php 上运行的应用程序,使用 amfphp 连接,我在 amfphp 的 services.conf 中添加了一个安全通道
<channel-definition class="mx.messaging.channels.SecureAMFChannel" id="my-amfphpSec">
<endpoint class="flex.messaging.endpoints.SecureAMFEndpoint" uri="https://flashservices/gateway.php"/>
</channel-definition>
我怎么知道 flex是否真的在使用这个安全通道?我试过
isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off'
和
$_SERVER['SERVER_PORT'] == 443
从 php 方面来看,它们都是错误的......但是如果我删除这些检查它工作正常,我在这里做错了什么?
谢谢。
注意:我正在使用 wamp,带有 mod_ssl,并从 localhost 工作