I am a newbie to retrofit and I am trying to call a GET request to the URL https://www.instagram.com/p/CQiocPoNqTw/?__a=1 using Retrofit 2, The request works fine on browser and postman. but it won't work with retrofit 2. I have attached the screenshot of my logcat.
The request is implemented as
@Headers(
"Accept: application/json",
"Accept-Encoding: gzip, deflate, br"
)
@GET
suspend fun getPostInfo(@Url url : String) : Response<PostDetails>
Thanks in advance.