You need to sign in to do that
Don't have an account?
Using Curl to login to salesforce bulk api
Hello all,
I'm following the guide at:
http://www.salesforce.com/us/developer/docs/api_asynchpre/api_bulk.pdf
and trying to login to salesforce using Curl on a Win-32 machine.
At first I received errors about missing .dlls , so I placed the openssl .dlls in the "System-32" folder, but now I still can't login.
Each time I try to login I use the following command:
curl https://login.salesforce.com/services/Soap/u/22.0 -H "Content-Type: text/xml;charset=UTF-8" -H SOAPAction: login" -d @login.txt
and get the following error message:
"curl: (60) SSL certificate problem, verify that the CA cert is OK.
Details:error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed"
What went wrong? Is there something else I should install or am I not loging in correctly?
You're missing the certs that are used to validate the salesforce.com servers. You can add --insecure to your parameters to ignore this error, or you can read the documentation on how to add CA certs.
http://curl.haxx.se/docs/sslcerts.html
Thanks for quick reply!
I tried adding certificates downloaded from the setup pages in salesforce.com, but still got the same error.
I also tried logging in insecurly, but that failed too.
I think there might be a problem with my instalation of "Openssl" or I'm not using the correct certificates...
If you could please specify where to download and how to use a CA cert that worked for you, it would be awesome :)
Thanks!
while executing the command
curl https://login.salesforce.com/services/Soap/u/24.0 -H "Content-Type: text/xml;charset=UTF-8" -H "SOAPAction: login" -d @login.txt
in cmd window ..
getting the error "could not resolve host :login.salesforce.com; host not found"
where i went wrong ?
I'm working on the tutorial too.
I get an error message that complains it can't read the file.
Warning: Couldn't read data from file "login.txt", this makes an empty POST.
I have a mac and have placed the file in my user directory is this correct ? or is there something i mssing.
Thanks in advance.
Lee
Now mine is return this.
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Client</faultcode>
<faultstring>No operation available for request {urn:partner.soap.sforce.com/}login</faultstring>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>