ExternalResourceClient Returning no response

Hello All,

I am using ExternalResourceClient with GET method with Bearer token to replace curl coding. 

URL and AuthKey are working on Postman. Also, POST Method on ExternalResourceClient is working well.

But GET method on ExternalResourceClient is returning 200-ok but with empty brackets, while server returns JSON response with message and status fields.

Please guide,

Prasad

$response = (new ExternalResourceClient())->get($url, ['Content-Type' => "application/json", 'Authorization' => 'Bearer ' . $dmsAuthKey ]);
var_dump($response->getBody()->getContents()); //returning {}

Parents Reply Children
No Data