Get a file from an HTTP, HTTPS or FTP server