Added ssl support to request