Prioritise Curl (see https://github.com/joomla/joomla-cms/pull/4105)

This is something that happens in most HTTP libraries - if curl exists it is used. Else then we use a alternative fallback