function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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