11.07.2015 Views

Network Working Group R. Fielding Request for Comments: 2616 ...

Network Working Group R. Fielding Request for Comments: 2616 ...

Network Working Group R. Fielding Request for Comments: 2616 ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

- Extending a database through an append operation.The actual function per<strong>for</strong>med by the POST method is determined by theserver and is usually dependent on the <strong>Request</strong>-URI. The posted entityis subordinate to that URI in the same way that a file is subordinateto a directory containing it, a news article is subordinate to anewsgroup to which it is posted, or a record is subordinate to adatabase.The action per<strong>for</strong>med by the POST method might not result in aresource that can be identified by a URI. In this case, either 200(OK) or 204 (No Content) is the appropriate response status,depending on whether or not the response includes an entity thatdescribes the result.<strong>Fielding</strong>, et al. Standards Track [Page 54]RFC <strong>2616</strong> HTTP/1.1 June 1999If a resource has been created on the origin server, the responseSHOULD be 201 (Created) and contain an entity which describes thestatus of the request and refers to the new resource, and a Locationheader (see section 14.30).Responses to this method are not cacheable, unless the responseincludes appropriate Cache-Control or Expires header fields. However,the 303 (See Other) response can be used to direct the user agent toretrieve a cacheable resource.POST requests MUST obey the message transmission requirements set outin section 8.2.See section 15.1.3 <strong>for</strong> security considerations.9.6 PUTThe PUT method requests that the enclosed entity be stored under thesupplied <strong>Request</strong>-URI. If the <strong>Request</strong>-URI refers to an alreadyexisting resource, the enclosed entity SHOULD be considered as amodified version of the one residing on the origin server. If the<strong>Request</strong>-URI does not point to an existing resource, and that URI iscapable of being defined as a new resource by the requesting useragent, the origin server can create the resource with that URI. If anew resource is created, the origin server MUST in<strong>for</strong>m the user agentvia the 201 (Created) response. If an existing resource is modified,either the 200 (OK) or 204 (No Content) response codes SHOULD be sentto indicate successful completion of the request. If the resourcecould not be created or modified with the <strong>Request</strong>-URI, an appropriate

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!