Changed data transfer method to cURL