You are Here: FAQ ->Domains->SSL->Article #11


Using proxy SSL with os commerce or other open source software


What you need to change to get the proxy SSL working with OS e-commerce.

A sample request.php (Copyright (c) 2002-2003, Richard Heyes)
file is listed below.

Just rewrite the part that actually tells the site how to connect to your SSL
shared proxy server:

/**
* Generates a Host header for HTTP/1.1 requests
*
* @access private
* @return string
*/
function _generateHostHeader()
{
if ($this->_url->port != 80 AND strcasecmp($this->_url->protocol,
'http') == 0) {
$host = $this->_url->host . ':' . $this->_url->port;

} elseif ($this->_url->port != 443 AND strcasecmp($this->_url->protocol,
'https') == 0) {
$host = $this->_url->host . ':' . $this->_url->port;

} elseif ($this->_url->port == 443 AND strcasecmp($this->_url->protocol,
'https') == 0 AND strpos($this->_url->url, ':443') !== false) {
$host = $this->_url->host . ':' . $this->_url->port;

} else {
$host = $this->_url->host;
}

return $host;
}

SD1B1307


Print Article
How useful was this article?
(From 5 = Very Useful to 1 = Not useful at all):
1 2 3 4 5