perlquestion
MorayJ
<p>Hi</p>
<p>The UK government has changed its website and I'm trying to check up on links that I have to see if they still work on the new structure</p>
<p>I'm using LWP::Simple for this</p>
<p>If I put in the web address <code>https://www.insolvencydirect.gov.uk/isolv</code>, it very kindly returns <code>http://www.bis.gov.uk/insolvency</code> when I use <code>$request->uri</code> ($request being found with:
<code>
my $browser = LWP::UserAgent->new;
my $response = $browser->get( $url );
my $request = $response->request();</code>)
</p>
<p>This is where the site now sends you if you go to that url</p>
<p>Difficulty is encountered with other links, like <code>www.direct.gov.uk/en/Motoring/OwningAVehicle/TaxationClasses/DG_4022042</code> which takes you to <code>https://www.gov.uk/vehicle-exempt-from-car-tax</code> if you use a browser, but which <code>$request->uri</code> returns the original url I put in.</p>
<p>What are they doing differently? What do I need to do differently? I guess it's probably more of a web question that just about perl.</p>
<p>Thanks for any advice</p>
<p>MorayJ</p>