Tuesday, December 7, 2021

 HTTP Request and HTTP Response

In HTTP Request, the first line is called as Request line. It consist of 3 Parts, They are

 1. Method     2.URL     3.Version

In HTTP Response, the first line is called as Status line. It consist of 3 Parts, They are

 1.    Version     2.Status Code      3.Phrase (Description of Status code)

 

MIME Headers: MIME (Multi-Purpose Internet Mail Extensions) is an extension of the original Internet e-mail  protocol that lets people use the protocol to exchange different kinds of data files on the Internet: audio, video, images, application programs, and other kinds.

 


                         HTTP Request Message Example

HTTP Response Message Example

The first digit of the Status-Code defines the class of response. The last two digits do not have any categorization role. There are 5 values for the first digit:

1xx: Informational Responses - Request received, continuing process

2xx: Success - The action was successfully received, understood, and accepted

3xx: Redirection - Further action must be taken in order to complete the request

4xx: Client Errors - The request contains bad syntax or cannot be fulfilled

5xx: Server Errors - The server failed to fulfil an apparently valid request.

















No comments:

Post a Comment

A simple Java program to find the inverse of a given matrix

  import java.util.Scanner; public class MatrixInverse { public static void main (String[] args) { Scanner scanner =...