my $conn = LWP::UserAgent->new(keep_alive => 1,) or die(Failed to create UserAgent"); $conn->timeout("3"); my $cache = $conn->conn_cache(); my $url = "http://192.168.1.2/test.html" #My local machine my $request = HTTP::Request->new('GET', $url); my $response = $conn->request($request); print STDERR "$response\n"; $cache->drop();