Curl implemented in Perl