japi: factor out a curl function
japi: factor out a curl function

SUSE-Cloud/automation,vmoravec/automation,vmoravec/automation,aspiers/automation,SUSE-Cloud/automation,aspiers/automation,gosipyan/automation,aspiers/automation,vmoravec/automation,gosipyan/automation,vmoravec/automation,SUSE-Cloud/automation,aspiers/automation,gosipyan/automation,gosipyan/automation,SUSE-Cloud/automation