You need to sign in to do that
Don't have an account?
bulk api: create-job: content-type issue
While running the curl examples for bulk api. I'm hitting an enfuriating circular pattern of errors. If I run this (with serverUrl and sessionId properly populated:
curl <serverUrl> -H "X-SFDC-Session: <sessionId>" -H "Content-Type: application/xml; charset=UTF-8" -H "Accept: application/xml" -H"Host: test.salesforce.com" -H "Connection: keep-alive" -d create-job.xml
I get this:
<faultstring>content-type of the request should be text/xml</faultstring>
If I run this:
curl <serverUrl> -H "X-SFDC-Session: <sessionId>" -H "Content-Type: text/xml; charset=UTF-8" -H "Accept: application/xml" -H"Host: test.salesforce.com" -H "Connection: keep-alive" -d create-job.xml
I get this:
<faultstring>SOAPAction HTTP header missing</faultstring>
What am I missing here?
<faultstring>Content is not allowed in prolog.</faultstring>