SPHPlayground API
SPHPlayground
sphplayground sphplayground

HTTP headers components

BASIC INFORMATION:

HTTP headers let the client and the server pass additional information with a message in a request or response. [1]

NOTE: Remember that Header::send() just like PHP's native header() must be called before any actual output is sent. It is a very common error to have spaces or empty lines that are output before headers are called. [2]

HTTP header

An HTTP cookie is a small block of data created by a web server while a user is browsing a website and placed on the user's device by the user's web browser. [3]

Cookies serve useful and sometimes essential functions on the web. They enable web servers to store stateful information on the user's device. [3]

Header types:

Synopsis

interface Header

HTTP cookie

An HTTP cookie is a small block of data created by a web server while a user is browsing a website and placed on the user's device by the user's web browser. [3]

Cookies serve useful and sometimes essential functions on the web. They enable web servers to store stateful information on the user's device. [3]

Cookie types:

Synopsis

class Cookie