# And then we update the URL based on the Location:-header. my $referral_uri = $response->header('Location');