I'm sure it's a minor thing I miss over here, but I'm trying to solve it for like 2 hours without luck.
I'm trying to access the bulk API.
When I'm doing it with workbench its works fine :
But when I try to do it from postman, Its throw me a status of : 400 no host. with the next body :
<h1>Bad Message 400</h1> <pre>reason: No Host</pre>
I believe it's because of the instance URL but I cant find what I'm doing wrong.
This is the requested URL:
I also tried the request URL from the docs :
But when I'm adding the "-api" to the instance name - I'm getting the error from postman :
Error: getaddrinfo ENOTFOUND instance-api.my.salesforce.com
I put al the requested headers and body :
Content-Type - application/json
Accept - application/json
X-SFDC-Session - access token
I saw this question: Getting Bulk API details from my.salesforce.com organization
and I made sure I'm on the right URL - when getting the access token from salesforce (I looked o the returned instance_url )