open(CURL, qq[curl -s -N "https://www.foo.com/cgi-bin/do.cgi" |]) or die; # the script hangs here my $read = sysread(CURL, $line, 1); close(CURL);