redss has asked for the wisdom of the Perl Monks concerning the following question:
$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!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to pipe url back to stdout as stream
by ikegami (Patriarch) on Dec 03, 2004 at 17:44 UTC | |
by redss (Monk) on Dec 03, 2004 at 21:14 UTC | |
by Anonymous Monk on Dec 03, 2004 at 21:38 UTC | |
by mcm (Novice) on Dec 03, 2004 at 22:02 UTC | |
by ikegami (Patriarch) on Dec 03, 2004 at 23:36 UTC |