in reply to Streaming data through web server to browser with CGI
I'm seeing the "Grabbing data and passing it to browser." message, and the data in the browser looks like the PDF data I want, but I'm getting an Internal Server Error on the browser.my $ua = LWP::UserAgent->new; $ua->timeout(30); my $response = $ua->get($redirectURL); if ($response->is_success) { $logger->info("Grabbing data and passing it to browser."); print $response->content; # or whatever $logger->info($response->content); } else { $logger->info("Didn't get the data."); die $response->status_line; }
Thoughts?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Streaming data through web server to browser with CGI
by moritz (Cardinal) on Aug 16, 2007 at 15:32 UTC | |
by rashley (Scribe) on Aug 16, 2007 at 15:40 UTC | |
by jZed (Prior) on Aug 16, 2007 at 15:48 UTC | |
by rashley (Scribe) on Aug 16, 2007 at 15:55 UTC |