PHP page returning HTTP / 1.1 200 OK [closed]

0

After SQL query and data return using JSON, using the Firefox browser the following is written on the screen:

0

HTTP/1.1 200 OK
Date: Sun, 12 Jun 2016 22:52:42 GMT
Server: Apache
X-Powered-By: PHP/5.3.28
Keep-Alive: timeout=5
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html

41
{"AQUI RETORNA O MEU":"JSON E ACABA"}

Using Chrome Mobile on a smartphone, this HTTP data does not appear, returning only the JSON as desired.

Test page: www.megaprotecaoveicular.com.br/mobile/data.php

Thanks for the help right away.

    
asked by anonymous 13.06.2016 / 01:13

1 answer

2

Server headers and should not be displayed on the client side.

HTTP / 1.1 200 OK

It means that the server is responding by using HTTP protocol version 1.1. 200 is the code used when everything is ok.

Content-Length: 0

The content size (in this case 0 bytes)

Keep-Alive: timeout = 5, max = 100

How long the connection will remain open.

Connection: Keep-Alive

Informs that the connection will remain open

Content-Type: text/plain

What is the MIME type of content (HTML, in this case, is: text / html)

Documentation Here (RFC 2616)

More understandable information with 23 reference links: HTTP Headers

Reason to be appearing on the client side (browser): outdated version of Mozilla Firefox. The bug was reported by several users in the year 2011 and fixed in version 9 of the browser, or at least stopped presenting the problem since.

    
13.06.2016 / 03:10