Correcting socket connection to use SSL as required by changes from Flickr