Extended to support https and ftp