'xorriso fails extracting iso from curl through pipe

I have an .iso that should be downloaded and "extracted" to a directory. I figured I could do this same as tar using stdin or bash process substitution to extract while downloading, but I'm getting errors that the file is empty. Running the curl command standalone downloads the .iso as expected.

$ osirrox -drive-class clear_list caution -indev <(
    curl --fail --header "X-JFrog-Art-Api: $(cat /run/secrets/ARTIFACTORY_API_KEY)"         
    https://artifactory.corp.int/application.iso
) -extract / application -file_name_limit 255
> #10 0.331 xorriso 1.4.8 : RockRidge filesystem manipulator, libburnia project.                                                       
> #10 0.331 
> #10 0.333 Drive current: -indev '/dev/fd/63'
> #10 0.333 Media current: stdio file, sequential
> #10 0.333 Media status : is blank
> #10 0.333 Media summary: 0 sessions, 0 data blocks, 0 data, 1024g free

Not sure whether it's curl or xorriso giving me a hard time.

Possibly related; I cannot make it work with 7z either (process substitution or -si). Not as interested in a 7z solution since it among other things drops execute permissions, but the info might be useful for finding a root cause.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source