You need to sign in to do that
Don't have an account?
SirTrav
Sent http request to 111.222.3.44:12345 instead of http://111.222.3.44:12345
I am trying to make a call out to a webconnection to an external service. I have a program that will test to make sure the service is working. In that program if I put http://111.222.3.44 it cannot connect to my webservice, but if I put 111.222.3.44 it can connect to my service. In salesforce I have tried going
HttpRequest req = new HttpRequest(); req.setEndPoint('111.222.3.444:12345');
What I get is an error that says System.CalloutException: no protocol:111.222.3.444:12345 If I put the http:// on there it just times out. Any idea how to make salesforce not require the http or is there a different callout method?
sfdcfox
You're trying to... ping? You'll need to actually have a service on the other end that supports http. All of salesforce's socket features are http-based (as opposed to a Berkeley socket, for example). This is why only REST and SOAP are currently supported.