WD Paper Solution.: A) What Is HTTP? Explain HTTP Header With Example
WD Paper Solution.: A) What Is HTTP? Explain HTTP Header With Example
Q.1
HTTP header: HTTP headers let the client and the server pass
additional information with an HTTP request or response. An
HTTP header consists of its case-insensitive name followed by a
colon (:), then by its value.
Ex:
PUT /demo/program HTTP/1.1
Host: original.sample.com
Content-Type: video/h264
Content-Length: 2342564178765
Expect: 100-continue
xhr.open('GET', url);
xhr.onreadystatechange = someHandler;
xhr.send();
HTTP/1.1 200 OK
Date: Mon, 01 Dec 2008 00:23:53 GMT
Server: Apache/2
Access-Control-Allow-Origin: *
Keep-Alive: timeout=2, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: application/xml
[…XML Data…]