You need to sign in to do that
Don't have an account?

505 HTTP version not supported
Hi All
I am sending a http request from salesforce to appery.I am getting
Status=HTTP Version Not Supported, StatusCode=505
The same url is working when i did a test on hurl.it.Please help
http request: https://api.appery.io/rest/1/db/collections/Locations?where={shift_id:{ $eq: "553de5b333b01887fd86e41c" }}
I am sending a http request from salesforce to appery.I am getting
Status=HTTP Version Not Supported, StatusCode=505
The same url is working when i did a test on hurl.it.Please help
http request: https://api.appery.io/rest/1/db/collections/Locations?where={shift_id:{ $eq: "553de5b333b01887fd86e41c" }}
Please check if this helps:
https://success.salesforce.com/answers?id=90630000000gwVKAAY
Thanks,
Pratik
I already checked it and tried as mentioned in the link like removing spaces and stuff but still i am getting the same issue.But the same request is working in hurl.
HttpRequest req1 = new HttpRequest();
req1.setEndpoint('https://api.appery.io/rest/1/db/collections/Locations?where={shift_id:{ $eq: "553de5b9e4b01887fd86e41c" }}');
req1.setMethod('GET');
req1.setHeader('Authorization', authorizationHeader1);
system.debug('....'+authorizationHeader1);
req1.setHeader('X-Appery-Database-Id','54a42b32e4b08ad5d670e676');
This is my post can you advice me how to mention http version here