Added HttpClient lib to upload data instead of curl