Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

improvement FIX SSL #23

Open
justvanbloom opened this issue Jun 6, 2013 · 0 comments
Open

improvement FIX SSL #23

justvanbloom opened this issue Jun 6, 2013 · 0 comments

Comments

@justvanbloom
Copy link

replace this:
$fp = fsockopen($url_parsed[host],"80",$err_num,$err_str,30);
with:
if ($url_parsed['scheme'] == 'https') {
$url_parsed['port'] = 443;
$ssl = 'ssl://';
} else {
$url_parsed['port'] = 80;
$ssl = '';
}
$fp = @fsockopen($ssl.$url_parsed['host'], $url_parsed['port'], $err_num, $err_str, 30);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant