What is the easiest way (without opening a shell to curl and reading from stdin) in Perl to stream from another HTTP resource? I’m assuming here that the HTTP resource I’m reading from is a potentially infinite stream (or just really, really long)
Share
HTTP::Lite‘s
requestmethod allows you to specify a callback.However, looking at the source, there seems to be a bug inIt seems safer to usesub requestin that it seems to ignore the passed callback.set_callback:Output:
It looks like a callback passed to the
requestmethod is treated differently: