Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • 3
    This is almost exactly what CGI was invented for, all those years ago. A url triggers invocation of a program on the server, and the output of the program streams data to the browser. There's some extra HTML the program needs to output, so the browser knows that it's receiving a stream and what format the data is in. Commented Jul 13 at 21:19
  • @SottoVoce Yes that's right, good old CGI! :) Alternatively, do you think it is possible to make Apache serve the download of a "file" (which is in fact a mkfifo-ed named pipe file under the hood), without having this ERR_EMPTY_RESPONSE? Commented Jul 14 at 9:59
  • A .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. Commented Jul 15 at 21:43
  • 2
    @waltinator, how would you miss bytes from the beginning? Commented Jul 15 at 21:58
  • Following on from other responses, the correct solution here is to write a small piece of code there's executed when you hit the specified URL. The code can read from your named pipe, or even run the code on the other end of the pipe directly. As others have suggested, look up web server cgi Commented Jul 15 at 22:43