Questions tagged [curl]

cURL is a computer software project providing a library and command-line tool for transferring data using various protocols.

16 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
1k views

Salesforce Bulk API v2.0 INVALID_SESSION_ID

Following the Salesforce Bulk API v2.0 documentation at: https://developer.salesforce.com/docs/atlas.en-us.api_bulk_v2.meta/api_bulk_v2/walkthrough_upload_data.htm https://developer.salesforce.com/...
Sebi's user avatar
  • 203
4 votes
0 answers
907 views

Unsupported Content Type while using curl

We are currently working on with bulk api to load json data's into salesforce.But unfortunately we are not able to load it and getting error as unsupported content type does salesforce currently ...
Priyalakshmi's user avatar
  • 1,456
2 votes
0 answers
50 views

Posting Pdf to chatter via bulk api?

Which object should we use to post data's to chatter?I am trying to post a pdf file to a chatter object using curl. What is the name of the object that we should specify in txt file? <?xml ...
Priyalakshmi's user avatar
  • 1,456
1 vote
0 answers
151 views

Single Logout (SLO) API - 400 Bad Request - Illegal character VCHAR='='

This is as part of Single Logout (SLO) implementation. The need is to logout Salesforce Experience Cloud Site when user logsout from java based application. To implement this, below Salesforce ...
Vasanth Subramanian's user avatar
1 vote
0 answers
1k views

sObject Collections - Update Multiple Records via REST using PATCH - Bad Request 400

I am trying to use the Salesforce sObject Collections REST API resource that was released in Spring '18. Per the Salesforce Documentation, this should be a PATCH request, however when I try to call ...
Laslos's user avatar
  • 111
1 vote
0 answers
2k views

error=invalid_client_id for authentication

I have enabled the Contacts app in SF to be connected and have the consumer and secret keys. Following the steps in https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/...
sam452's user avatar
  • 111
1 vote
0 answers
984 views

Call Salesforce Apex Rest Post Method using PHP

The aim of this code is to call post method apex rest using php curl. But I am getting an error of response [{"message":"Unexpected parameter encountered during deserialization: Last Name at [line:1, ...
Danryl Tigol Carpio's user avatar
0 votes
0 answers
77 views

OAuth 2.0 Refresh Token Flow for Renewed Sessions

I'm trying to get access token as described here -> https://help.salesforce.com/s/articleView?id=sf.remoteaccess_oauth_refresh_token_flow.htm&type=5 Everything works fine as long as I send ...
Tom's user avatar
  • 101
0 votes
0 answers
1k views

Curl - JSON_PARSER_ERROR Unexpected character

getting the following error using curl with salesforce, I'm trying to update a record. Have I formatted this wrong or am I missing something Many thanks for your help curl https://##url##/services/...
Simon Webb's user avatar
0 votes
0 answers
625 views

connection to salesforce with curl, no response

As a followup of windows curl authentication error, i'm doing the tutorial on https://trailhead.salesforce.com/content/learn/modules/apex_integration_services/apex_integration_webservices?trail_id=...
Luis Aguiar's user avatar
0 votes
1 answer
788 views

"Session expired or invalid' when I send.a get request for data

I am a front-end dev trying to hook a salesforce api to one of my apps. For practice (yesterday) I created a new connected app and used the below to fetch some data and it worked curl https://tahina-...
Kisho's user avatar
  • 113
0 votes
1 answer
593 views

Token request sends a redirect instead of token or error

I have trial Enterprise account and I can successfully obtain a token with the below curl. curl -v https://eu31.salesforce.com/services/oauth2/token -d "grant_type=password" -d "client_id=...
Nipun Thathsara's user avatar
0 votes
0 answers
90 views

Update a Record's Fields in Production Org from External Website w/o Salesforce Login

I have a form on my WordPress website that collects additional information from customers. I want this information added to an existing record of MyCustomObject. To do this, I will need to make a ...
Matthew's user avatar
  • 133
0 votes
1 answer
909 views

Username/password authentication curl attempt failture

I'm trying to get an access token using following curl: curl --data grant_type=password&client_id=Y&client_secret=Z&username=A&password=B+C https://login.salesforce.com/services/...
jones's user avatar
  • 101
0 votes
1 answer
647 views

Having Trouble with Force.com REST API oAuth2 Authentication

I am experimenting with Pat_Patterson's "Interact with the Force.com REST API from PHP". I am using PHP Version 5.6.3 , and I already registered my app via Setup->Create->Apps->Connected Apps. I setup ...
Danryl Tigol Carpio's user avatar
0 votes
3 answers
2k views

Calling REST APIs from PHP with curl

I've successfully received an access token thru the API, but no matter what I do I keep getting this "INVALID_SESSION_ID". Does this mean the access key is invalid? I've tried lots of suggestions from ...
Mike Lacourse's user avatar