Curl function test