
1 answer
You should be able to do this in Salesforce / apex. Curl is making Http request so you can using Apex. Check section "HTTP (RESTful) Services" of this article (https://developer.salesforce.com/page/Apex_Web_Services_and_Callouts) to understand more about how to make Http request to external websites. You can try this (http://www.jitendrazaa.com/blog/salesforce/salesforce-to-salesforce-integration-using-named-credentials-in-just-5-lines-of-code/)article as well using Named credential.