Monday, 1 May 2017

Unable to get content from website on linux machine using LWP::UserAgent, same script working fine on windows machine

Source: stackoverflow.com --- Sunday, April 30, 2017
Below code i have used for getting content. Please let me know the suggestions. #!/usr/bin/perl require LWP::UserAgent; my $ua = LWP::UserAgent->new; $ua->env_proxy; $ua->timeout(10); my $response = $ua->get('http://ift.tt/Taaz4V'); my $data=''; if ($response->is_success) { $data = $response->decoded_content; # or whatever } else { die $response->status_line; } ...



from Windows http://ift.tt/2pkVZKh

No comments:

Post a Comment