I've been downloading documents to my local drive from an archive that requires authentication in the form of UserAgent name and email and Host URL. I've been using URLDownload to do this.
URLDownload[
HTTPRequest[
urlOfRemoteFile, <|"UserAgent" -> "firstName lastName emailAddress",
"Host" -> "hostURL"|>],
pathToLocalDirectory"];
But is it possible to use Import or some other function to load the contents of the file directly into a Mathematica notebook without having to save the file locally? I've tinkered with Import but can't get the authentication right.
Any hint would be appreciated.