Changing request to cURL because fopen wrapper is disabled on production