Sourav
Sourav

Reputation: 17530

Information in the HEADER which can not be changed/altered

What are the filed in the header which will be always present [99% atleast] and can not be altered ?

Upvotes: 0

Views: 155

Answers (2)

Taha Jahangir
Taha Jahangir

Reputation: 4902

According to w3.org this header fields is not modifiable by javascript:

  • Accept-Charset
  • Accept-Encoding
  • Connection
  • Content-Length
  • Cookie
  • Cookie2
  • Content-Transfer-Encoding
  • Date
  • Expect
  • Host
  • Keep-Alive
  • Referer
  • TE
  • Trailer
  • Transfer-Encoding
  • Upgrade
  • User-Agent
  • Via
  • Proxy-*
  • Sec-*

Upvotes: 2

Mel
Mel

Reputation: 6157

The request. Everything else is optional. Host header is mandatory if using HTTP/1.1.

Upvotes: 0

Related Questions