I'm attempting to retrieve a custom object record by one of it's unique fields using the built in api. For this specific call, my request is is:
path: `/services/data/v43.0/sobjects/YTPStudent__c/drupalId__c/39111`
method: GET
headers:
Authorization: 8248...3483
Content-Type: application/json
When I do this on Postman, it works fine. I get the proper response. However, when I make the exact same call via Drupal., it's failing with this html:
And the response body is this:
Code: 411
Error: length required
Is the 411 a false error? It doesn't make much sense why it works for one platform but not another….
Best Answer
Thank You for answered your own question. It works perfectly!