Fix fsockopen over ssl

Only worked via port 80 without ssl:// prefixed to the hostname
Merge pull request #3 from michaelbasford/master

Fix fsockopen over SSL