Fixing SSL URL and commenting a reported connection bug in the socket fallback code, note that by using php5-curl the code is fully functional.