remote_file: support authenticated HTTP/HTTPS requests