http://qs321.pair.com?node_id=11120858


in reply to "406 not acceptable" errors with LWP::UserAgent::get

Seems the main thing it doesnít like is the agent. Your code gave me the same error, even tweaked and pruned down until I swapped the agent for something that isnít, apparently, blacklisted.

use 5.10.0; use LWP::UserAgent; my $ua = LWP::UserAgent->new; $ua->agent('DomoArigato/3.0'); my $url = 'http://makeoursmarvel.com/feed/podcast/'; my $response = $ua->get($url); say $response->is_success ? "OK!" : $response->as_string; __END__ OK!