function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

How to ignore the version number in the URL which is used in login request?

Hi all,

I've started a discussion, , but not got expected suggestion.
When I send a web request to login with URL, username and password, the URL should be like this, . There is a specified API version number.
I tried some URLs as following:
All the three are invalid. The response messages are:
    1. HTML text for a login page of Salesforce.
    2. /u or /c should be specified.
    3. /u is an invalid version.

So, if I need to login without a specified version number, only for the login request, how could I change the URL text?

Ashish DevAshish Dev
First thing for SOAP api you must specifiy version number.
You can get version number without login.
On your other thread I observed that you tried to get version number from, which is incorrect URL to get org info.

You need to use your instance URL to get org Info like or
Then after getting supported version number you can use that value to make login request.
Daniel BallingerDaniel Ballinger
The API version in the login URL in not optional. With Winter `16 being the current release you can safely work with v35.0 going foward. Salesforce will maintain backwards compaticilty with it.

After establishing the session you can then modify the API version in the URL as required.