In this tutorial we will learn common HTTP method of PHP that can be used to perform actions on the web server.HTTP request is a class that contains HTTP style requests, request line, header fields, some headers and some (potentially empty) content.
GET:- This function used when the client is requesting a resource on the Web server. The request contains data with request URL.The data limit is limited so that you can not send more data with GET type request.
HEAD:- This function used when the client is requesting some information about a resource but not requesting the resource itself.
POST:- This function used when the client is sending information or data to the server in large amount. The data will not show on request URL as like GET request.
PUT:- This function used to send or upload a new document to the Web server under the request URL.
DELETE:- This function used when the client is trying to delete a document from the Web server.