Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6545561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:36:01+00:00 2026-05-25T11:36:01+00:00

I have been trying to connect to the Salesforce REST API but am not

  • 0

I have been trying to connect to the Salesforce REST API but am not having very much luck.
The Salesforce REST API Quick Start Guide states that an HTTPS callback url is required, but then in the example they use https://localhost:8443/RestTest/oauth/_callback as the callback url.

I tried connecting on my testing server (HTTP) using this php Salesforce REST API example, but Salesforce seems to have had a fit and entered a redirect loop.

Is it possible to connect to the Salesforce REST API if I do not have an SSL Certificate, and if so, how might I go about doing so? For the record, my application is written in PHP, not Java like most of the official examples are.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:36:01+00:00Added an answer on May 25, 2026 at 11:36 am

    I’ve never used the Salesforce REST API, but I have read the page you linked to.

    The OAuth callback URL must be HTTPS. You seem to have discovered this yourself, both in the documentation:

    It must be secure: http:// does not work, only https://

    …and the example:

    @WebInitParam(name = "redirectUri", value = 
        "https://localhost:8443/RestTest/oauth/_callback")
    

    As for your other question:

    Is it possible to connect to the Salesforce REST API if I do not have an SSL Certificate, and if so, how might I go about doing so?

    Presumably by the second method, as alluded to in the first sentence on the page you linked to:

    You can set up authorization using OAuth 2.0 or by passing a session ID.

    …

    Session ID Authorization

    You can use a session ID instead of an OAuth 2.0 access token if you aren’t handling someone else’s password:

    1. Obtain a session ID, for example, a SOAP Web services API login() call returns the session ID. You may also have the session ID, for example as part of the Apex current context.

    2. Use the session ID when you send a request to the resource. Substitute the ID for the token value.

    So provided you aren’t handling some else’s password (whatever that means), you can use login() to get a Session ID and communicate with the web service from there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to connect sphinx server with nodejs and limestone module. But
I am trying to connect to Webtrend's API using PHP but haven't been able
I have been trying to connect to some web services using WCF but I
Hi all I have been trying to fix this but could not fix, the
I have been trying to get tsung to connect to a box I have
I have been trying to connect to my database using pdo on godaddy with
I have been trying to connect netbean service for database explorer with Microsoft SQL
I have been trying to set up a PHP based SOAP client to connect
So I have been trying to run the Facebook Connect example for PhoneGap /
I have been trying to implement a small SERVER - CLIENT app but ran

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.