Explain HTTP request methods ?
HTTP defines a set of request methods to indicate the desired action to be performed for a given resource.
GET: The GET method is used to retrieve information from the given server using a given URI. Requests using GET should only retrieve data and should have no other effect on the data.
HEAD: Same as GET, but transfers the status line and header section only.
POST: A POST request is used to send data to the server, for example, customer information, file upload, etc. using HTML forms.
PUT: The PUT method replaces all current representations of the target resource with the request payload.
DELETE: Removes all current representations of the target resource given by a URI.
CONNECT: Establishes a tunnel to the server identified by a given URI.
OPTIONS: Describes the communication options for the target resource.
TRACE: Performs a message loop-back test along the path to the target resource.
PATCH :The PATCH method is used to apply partial modifications to a resource.
Explain HTTP response status codes?
HTTP response status codes indicate whether a specific HTTP request has been successfully completed. Responses are grouped in five classes:
Informational responses (100–199)
Successful responses (200–299)
Redirects (300–399)
Client errors (400–499)
Server errors (500–599)
For more information follow this link: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
No comments:
Post a Comment