Added basic support for https requests