Answers for "what are http methods"

18

what are http methods

Get : enables you to retrieve data from server
Post: enables you to add data to an existing 
     file or resource in a server
Put: lets you replace an existing file or resource
     in a server
Delete: lets you delete data from server
Patch:For partial update
Posted by: Guest on January-14-2021
8

http methods

GET 
			getting data in the server 

		POST 

			adding data to the server 

			we need to provide the data in the format 
			the document specify
			and tell exactly what type if data we are sending
			defined by Content-Type Header 

			Common status code for successful POST is 
				201 Created -- you will have response body 

		 PUT 
		 	Put is used to update the exsisting data from the server 
		 	difference between PUT and POST 
		 	 POST is adding new data 
		 	 	so the URL will be /api/spartans
		 	 PUT is updating existing data 
		 	 	so the URL will be /api/spartan/validIDNumberHere

		 	 provide updated data 
		 	 provide the contenttype of the data you are sending to update 

		 	 common status code for successful PUT request
		 	  is 204 NO-CONTENT , it has no response body 
		 	  204 means it was updated successfully 


		  DELETE 

		  	Delete method is used to delete the data from the server
		  	Request URL will  /api/spartan/theValidID

		  	common status code for successful Delete request
		 	  is 204 NO-CONTENT , it has no response body 
		 	  204 means it was deleted successfully
Posted by: Guest on December-04-2020
3

HTTP Method

1. GET: getting data in the server. 
Usually we get 200 OK back for successful response. 
does not requires body
2. POST: adding data to the server defined by Content-Type Header. 
Common status code for successful POST is 
201 Created -- you will have response body 
3. PUT: Put is used to update the existing data from the server. 
204 means it was updated successfully
Difference between PUT and POST *POST is adding new data 
*PUT is updating existing data 
4. PATCH: Usually Used to partially update the resource 
5. DELETE: is used to delete the data from the server. 
204 means it was deleted successfully. does not requires body
6.HEAD: Used to just get the header from the response, not the body
Posted by: Guest on May-28-2021
6

what does http stand for

Hyper-text Transfer Protocol
Posted by: Guest on August-17-2020
7

what is Http

Http Stands for "Hypertext Transfer Protocol."
HTTP is the protocol used to transfer data over the web.
It is part of the Internet protocol suite and defines commands and services used
for transmitting webpage data. ... The HTTP server is typically a web host 
running web server software, such as Apache or IIS.
Posted by: Guest on May-29-2021
7

http request

HTTP request method is made up of four components:
Request Method ==> Get, Post, Put, Delete (these are
the common ones)
Request URL ==> the URL of the resource
Request Header ==> Accept-Language, AcceptEncoding, User-Agent, Host
Request Body ==> This is the data to be sent to the
resource
Request Query Parameters : key value pair 
		 	
HTTP response method is made up of three components:
Response Status Code ==> 200, 301, 404, 500
(these are the most common ones)
Response Header Fields ==> Date, Server, LastModified, Content-Type
Response Body ==> This is the data that comes
back to the client from the server.
Posted by: Guest on December-06-2020

Browse Popular Code Answers by Language