$buffer = get($url); print "Content-Type: $mimetype\n\n"; print $buffer;
Unfortunately it has to read the whole file in before printing it back out which takes too long for large files.
Is there a way to open an output pipe to make it streaming, so that it prints out the data as its recieved?
thanks in advance!
In reply to how to pipe url back to stdout as stream by redss
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |