Curl request wrapper