Hi,
I am experiencing a very strange problem with the latest version of
LWP (perl 5.6.0, LWP 5.48 fresh off CPAN, running under QNX Neutrino).
Calls to system() seem to break after a call to
LWP::UserAgent->request().
For example, in a code fragment such as the following, the "THIS IS A
TEST" messages 0, 1, and 2 succeed, but 3 and all subsequent calls to
system() do not work:
my($data) = "Test Data";
my($url) = "http://some.url/receiver.pl";
system "echo THIS IS A TEST - 0";
# Construct the HTTP post request
my $request = new HTTP::Request POST => $post_url;
$request->content_type('application/octet-stream');
$request->content($data);
system "echo THIS IS A TEST - 1";
# Post it
my $ua = new LWP::UserAgent;
system "echo THIS IS A TEST - 2";
my $result = $ua->request($request);
system "echo THIS IS A TEST - 3";
I've been banging my head against the wall on this for a couple of
hours. Any idea what might be causing this?
Regards,
Jeremy