HTTP | PUT Last Updated : 31 Oct, 2019 Comments Improve Suggest changes Like Article Like Report The HTTP PUT request method is used to create a new resource or overwrite a representation of the target resource that is known by the client. Calling this method once is similar to calling it multiple times successively as it has the same effect. Though it is idempotent, we cannot cache its response. Syntax: PUT /html file HTTP/1.1 Example: REQUEST: PUT /example.html HTTP/1.1 Host: sample.com Content-type: text/html Content-length: 20 <p>New File</p> RESPONSE: If the PUT request successfully creates a new resource, then the server informs the user by sending 201(Created) response. Output: HTTP/1.1 201 Created Content-Location: /example.html If the target resource already has a representation and it is successfully modified by the request then the server must send either a 200(OK) or 204(No Content) response indicating that the response is successful. Output: HTTP/1.1 204 No Content Content-Location: /newexample.html Supported Browsers: The browsers supported by HTTP | PUT are listed below: Google Chrome 6.0+ Internet Explorer 9.0+ Firefox 4.0+ Apple Safari 5.0 Opera 11.1 Comment More infoAdvertise with us Next Article NodeJS HTTP Module G Girish_Allam Follow Improve Article Tags : Computer Networks HTTP-headers Similar Reads HTTP Tutorial HTTP [HyperText Transfer Protocol] is an application layer protocol that has the responsibility of transferring hypertext that includes audio, video, text, images, and other important multimedia files. So, in this HTTP tutorial, we will analyze and understand the concept and applications of HTTP wit 5 min read What is HTTP ? HTTP (Hypertext Transfer Protocol) is a fundamental protocol of the Internet, enabling the transfer of data between a client and a server. It is the foundation of data communication for the World Wide Web. HTTP provides a standard between a web browser and a web server to establish communication. It 5 min read NodeJS HTTP Module In NodeJS, the HTTP module is a core built-in module that enables developers to create and manage HTTP servers. It plays a crucial role in handling server-side HTTP requests and responses, allowing for seamless communication between clients and servers. In this article, we will dive into the NodeJS 5 min read NodeJS HTTP Module In NodeJS, the HTTP module is a core built-in module that enables developers to create and manage HTTP servers. It plays a crucial role in handling server-side HTTP requests and responses, allowing for seamless communication between clients and servers. In this article, we will dive into the NodeJS 5 min read HTTP 201 status code What is HTTP ? HTTP stands for Hyper Text Transfer Protocol. Using this protocols, the clients communicate with server and vice versa. This concept is the core of internet, since it was created in 1990. HTTP is basic yet powerful file transfer protocol. Features of HTTP: HTTP is connectionless: This 3 min read A Typical HTTP Session In web communications, Hypertext Transfer Protocol (HTTP) is the cornerstone of data exchange between clients (typically web browsers) and servers. An HTTP session represents the lifecycle of the single request-response cycle between these two entities. Let us explore the steps involved in a typical 5 min read Like