Correcting socket connection to use SSL as required by Flickr changes