Hi all, JSON-RPC PHP failed to determine SSL connection on our server. I made some changes to determine it correctly.
We use Apache 2.0 & PHP5.2.2 and SSL connection can be determined by $_SERVER["HTTPS"], not by $_SERVER["SSL_PROTOCOL"]. Variable $_SERVER["HTTPS"] can be found in predefined variables http://uk2.php.net/reserved.variables Piece of code: ===========><8======================== case Accessibility_Domain: /* Determine the protocol used for the request */ $isSSL = isset($_SERVER["SSL_PROTOCOL"]) || (isset($_SERVER["HTTPS"]) && strlen($_SERVER["HTTPS"]) && strtolower($_SERVER["HTTPS"] != "off")); // URI scheme $requestUriDomain = $isSSL ? "https://" : "http://"; // Add the server name $requestUriDomain .= $_SERVER["SERVER_NAME"]; // The port number optionally follows. We don't know if they manually // included the default port number, so we just have to assume they // didn't. if ((! $isSSL && $_SERVER["SERVER_PORT"] != 80) || ( $isSSL && $_SERVER["SERVER_PORT"] != 443)) { // Non-default port number, so append it. $requestUriDomain .= ":" . $_SERVER["SERVER_PORT"]; } ===========><8======================== asaris ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
