Just wanted to add that this problem is not restricted to json, but
exists with the atom api too. I'll try to find some more info. Will
post it here if I get it. It has happened previously too. We had to
write a function to prevent to check for html and if yes prevent it
from being parsed by PHP's simplexml parser because it threw up a lot
of errors.

Anirudh S

On Aug 26, 7:00 pm, ben <ben.apperr...@googlemail.com> wrote:
> Occassionally i get back a 200 status html response from the json
> search api which look like this, most times the same search works
> fine, it just happens occassionally:
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/
> TR/1999/REC-html401-19991224/strict.dtd">
> <!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd";> -->
> <HTML>
> <HEAD>
> <META HTTP-EQUIV="Refresh" CONTENT="0.1">
> <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
> <META HTTP-EQUIV="Expires" CONTENT="-1">
> </HEAD>
> <BODY><P></BODY>
> </HTML>
> Does anyone recognise what this kind of response means? Is it normal,
> or just beta-ish quirks?

Reply via email to