Let's say I use Apache, and that I am in /var/www/html/. I do:
mkfifo test.tar tar cvf - ~/test/* > test.tar & In a browser, when trying to download http://localhost/test.tar I get:
ERR_EMPTY_RESPONSE (didn’t send any data) Is there a specific parameter of mkfifo that would the pipe look really like a regular file? Here the problems seems to come from the fact the file is a named pipe.
In my real example, I might use different webservers (not Apache), like CivetWeb, but first I want to analyze if it works with Apache (that I use the most).
ERR_EMPTY_RESPONSE?.tar(Tape ARchive) file is structured, that is, if you miss the beginning, or, in fact, any bytes from the datastreams, the end checksum won't match, and you'll have junk that you can't unTAR.