Correcting socket connection to use SSL

Using SSL on port 443 as required by changes from Flickr for people not using CURL library.