require LWP::UserAgent; [other stuff] #reset the counter $ua = LWP::UserAgent->new; $request = $ua->get($URL.'/reset'); [other stuff]