Questions tagged [curl]
cURL is a computer software project providing a library and command-line tool for transferring data using various protocols.
13
questions
8
votes
1
answer
7k
views
Error using Session Id auth with cURL following REST documentation
Problem: trying to authenticate to a dev org using Session Id authentication and cURL fails when following the REST API Dev doc. The example in the doc provides the following, which fails (Quick Start ...
6
votes
1
answer
7k
views
Novice Question: making a cURL callout from Apex to a 3rd party app?
I'm only familiar with REST and SOAP as API standards, and I'm a novice in general, so pardon my lack of understanding of most of these concepts.
I have a web form on a third party heroku app that I ...
3
votes
2
answers
1k
views
Help converting this cUrl to Apex?
I've already read and re-read the other posts here and here about cUrl to Apex. Those both dealt with only one parameter in the body of the request. This cUrl seems a bit trickier -- I can't seem to ...
2
votes
2
answers
15k
views
Obtain enterprise WSDL via curl
I am trying to obtain enterprise WSDL by accessing
https://cs15.salesforce.com/soap/wsdl.jsp?type=* URL via curl.
For this, I have obtained access token through OAUTH2 method via the following curl ...
9
votes
1
answer
33k
views
What is the use of setting OAuth Callback URL as https://login.salesforce.com/services/oauth2/success?
I'm using Salesforce developer account and trying to obtain OAuth access token using curl and it returns 500 Server Error giving the message specified in [1].
Used curl command is curl -v -H "Content-...
5
votes
1
answer
2k
views
Bypassing RemoteAccessAuthorizationPage when using a remote application?
Hey guys I had a dream last night about a huge issue in our ability to aggregate data.
After setting up a remote app, using PHP to "CURL" into login.salesforce.com for authorization, we hit the ...
3
votes
2
answers
6k
views
Sending data from PHP to Salesforce using CURL
I have to send the data from PHP to Salesforce and save the data in Salesforce. I have tried with the following code:
$curlurl = "https://www.mysalesforce.com/services/apexrest/Contact?email={$...
1
vote
2
answers
1k
views
cURL request equivalent to HTTP request in APEX
Scenario: Hello, I have a cURL string which needs to be converted to Http request to be called from apex.
Problem: I am getting 400 Bad Request Error
cURL:
curl https://test.sagepay.com/api/v1/...
1
vote
1
answer
934
views
windows curl authentication error
I'm doin a tutorial o REST connections to Salesforce, and in the Curl connection, i keep having an authentication error. URL: https://trailhead.salesforce.com/content/learn/modules/...
1
vote
1
answer
778
views
How to pass API endpoint URL containing \ to
I'm trying to pass the given URL to the setEndpoint method, but I'm getting an error.
This particular API URL contains backslash and maybe that's the problem because the code works fine with other ...
0
votes
1
answer
6k
views
Authorization PHP Curl returns Login page instead of token
I am trying to use PHP curl to authenticate my app's user, but instead of authenticating with OAuth it returns the actual html login form as a response. Why? I don't want to redirect the user over and ...
0
votes
2
answers
480
views
How to create a business account with the REST API
I can create a person account using the REST API, but I can't seem to find any documentation on how to create a business account. I imaging that the post items you send need to include something extra ...
0
votes
1
answer
3k
views
Persistant INVALID_AUTH_HEADER with curl on macos
I'm using curl to connect to a Salesforce org with OAuth (I'm following this tuto and get stuck at step 3):
1) Perform a User Agent OAuth request to get the session data below:
{
"access_token"...