You may need something like: "http://myusername:mypasswd@my.server/my/file.root"
Make sure that “wget” works, e.g.: wget http://myusername:mypasswd@my.server/my/file.root
Here’s a simple GitHub test (note: the “View raw” link is used): root -l -q -b -e 'TFile *f = TFile::Open("https://github.com/root-project/root/blob/master/tutorials/gallery.root?raw=true"); f->ls();'
Have you added the “token”, e.g.: "https://my.git.lab/api/v4/projects/MyRepositoryID/repository/files/MyFile.root/raw?private_token=MyReadApiOrReadRepositoryToken"
@Axel We need someone who could have a look at it.
Do I understand it right that when you: wget https://gitlab.cern.ch/path/filename.root
you really get the raw “filename.root” (which you can then open in ROOT)?
Error in <TDavixFile::Init>: file https://gitlab.cern.ch/api/v4/projects/.../repository/files/python%2Ftest%2FinputIO4.root/raw is truncated at 0 bytes: should be 2127856, trying to recover
Warning in <TDavixFile::Init>: no keys recovered, file has been made a Zombie
root -l -q -b -e 'TFile *f = TFile::Open("https://gitlab.cern.ch/hepmc/HepMC3/-/raw/master/python/test/inputIO4.root?inline=false");' works more or less well
Then there’s the “Download” button on the right, I took its URL. Note that GitLab is no full featured web server - this isn’t as fast / efficient as a regular Apache / nginx etc.