Using Curl client instead of Stream