Streaming connection
"Sylvain Thibault" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.lwp |
|---|---|
| Message-ID | <3B5149483A8B42C2B58AEC04B4983FE7@Trading> |
Greetings,
I am using a UserAgent with a callback to handle a streaming connection. How does one terminate the connection client-side ? How do you close the connection other than exiting the program ?
my $browser = LWP::UserAgent->new();
$response = $browser->get($surl, ':content_cb' => \&read_stream);
sub read_stream {...}
Thanks,
Sylvain