Rest call for https serveram

I have been able to hit https server using rest call and get response code inside play framework using httpsurlconnection .But when I am trying to read response body using connection.getinputstream I am getting null value as it seems during to Jon blocking nature of play it is not waiting for inputstream line to execute fully.How to resolve this issue.I don’t want to use playWS client as it seems more complicated for me

It’s true that using blocking APIs like HttpsURLConnection in a Play application is discouraged, but it shouldn’t normally cause this kind of effect. Can you post the code that you’re running and the specific error that you get?