+ Start a Discussion
vinothvinoth 

Rest Api returns html response

I am using REST API to call the site URL(endpoint), i am getting response in HTML format.
I tried:
Content-Type : application/json
Accept : application/json
But No luck. It seems, not supporting Json. 
How do i parse HTML response in apex?

Regards,
Vinoth.
AshlekhAshlekh
Hi,

Can you please share more inforation regarding your request. Proided information is not enough to solve this issue.

-Thanks
Ashlekh Gera
AshlekhAshlekh
Hi,

As per you endpoint you request a GET Http request and getting response in HTML. Some thing is going worng, you have to check your webservice or http request, becuse response is always come in json or xml format not in HTML.

You can install a POSTMan Extension in Chrome and than try to request http with all required header values and paramters.

-thanks
Ashlekh Gera