my $curl = LibCurl::Easy.new(:verbose, :followlocation, URL => 'http://example.com'); $curl.setopt(:verbose, followlocation => 1);