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
karimulla testingkarimulla testing 

rest callouts form salesforce to .net

hi..
i had passed the url in remotesite settings and after that in anonymous window:

  Http http = new Http();
                     HttpRequest request = new HttpRequest();
              request.setEndpoint('http://www.XXXXXXXX.com/api/GetCountryDetails');
              request.setMethod('GET');
        HttpResponse response = http.send(request);
        // Parse the JSON response
        if (response.getStatusCode() != 404) {
            System.debug('The status code returned was not expected: ' +
                response.getStatusCode() + ' ' + response.getStatus());
        } else {
            System.debug(response.getBody());
        }
... Actually we are trying to restcallout form salesforce application to other dotnet(.net) application which is in developing in local server or hosted in the local server  ... iam getting an  error as shown
User-added image
how to make the callout will the other application is in localserver...any idea will be appreciated....