Sending HTTP headers through Javascript

Sending HTTP headers through Javascript You can send HTTP(Hypertext Transfer Protocol) request headers through javascipt from client to server.

For this to accomplish, we need to write a <meta> tag inside the <head>

Example:
<meta name="http-equiv" content="<one of the below 2 values>"

The two values are as follows:
1. content-type => Specifies the character encoding for the document.
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />

2. refresh => number in seconds this specifies the number of seconds after which the page will automatically refresh.
<meta http-equiv="refresh" content="300" />

Comments

Popular posts from this blog

Parallel Database design, query processing

Laravel | PHP | Basics | Part 2

Apache Hadoop | Running MapReduce Jobs