What is Representations in HTTP?
Submitted by: MurtazaThe HTTP client and HTTP server exchange information about resources identified by URLs.
We can sum up what we have learned so far in the following way: the HTTP client and HTTP server exchange information about resources identified by URLs.
We say that the request and response contain a representation of the resource. By representation, we mean information, in a certain format, about the state of the resource or how that state should be in the future. Both the header and the body are pieces of the representation.
The HTTP headers, which contain metadata, are tightly defined by the HTTP spec; they can only contain plain text, and must be formatted in a certain manner.
The body can contain data in any format, and this is where the power of HTTP truly shines. You know that you can send plain text, pictures, HTML, and XML in any human language. Through request metadata or different URLs, you can choose between different representations for the same resource. For example, you might send a webpage to browsers and JSON to applications.
Submitted by: Murtaza
We can sum up what we have learned so far in the following way: the HTTP client and HTTP server exchange information about resources identified by URLs.
We say that the request and response contain a representation of the resource. By representation, we mean information, in a certain format, about the state of the resource or how that state should be in the future. Both the header and the body are pieces of the representation.
The HTTP headers, which contain metadata, are tightly defined by the HTTP spec; they can only contain plain text, and must be formatted in a certain manner.
The body can contain data in any format, and this is where the power of HTTP truly shines. You know that you can send plain text, pictures, HTML, and XML in any human language. Through request metadata or different URLs, you can choose between different representations for the same resource. For example, you might send a webpage to browsers and JSON to applications.
Submitted by: Murtaza
Read Online Hypertext Transfer Protocol (HTTP) Job Interview Questions And Answers
Top Hypertext Transfer Protocol (HTTP) Questions
☺ | Explain Idempotent methods and web applications? |
☺ | What is Hypertext Transfer Protocol (HTTP)? |
☺ | What is Secure HTTP? |
☺ | What is https URI scheme? |
☺ | What is HTTP session state? |
Top TCP/IP Protocols Categories
☺ | TCP/IP Interview Questions. |
☺ | Hypertext Transfer Protocol (HTTP) Interview Questions. |
☺ | Internet Protocol (IP) Address Interview Questions. |
☺ | SS7 Interview Questions. |
☺ | Spanning Tree Protocol (STP) Interview Questions. |