When I check the headers I am sending to a php page, which is installed locally, I always see this Connection: Keep-Alive
Example:
var_dump(getallheaders());
Output:
array (size=7)
'Host' => string '127.0.0.1' (length=9)
'User-Agent' => string 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0' (length=76)
'Accept' => string 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' (length=63)
'Accept-Language' => string 'pt-BR,pt;q=0.8,en-US;q=0.5,en;q=0.3' (length=35)
'Accept-Encoding' => string 'gzip, deflate' (length=13)
'Cookie' => string '_ga=GA1.1.1775431020.1436189521' (length=31)
'Connection' => string 'keep-alive' (length=10)
- What does
Keep-alive
mean? - What is it for?