@GET : 상대방에서 데이타를 얻음

@POST : 상대방에 데이타를 보냄

     POST sends data to a specific URI and expects the resource at that URI to handle the request.

    The web server at this point can determine what to do with the data in the context of the specified resource.

    The POST method is not idempotent, however POST responses are cacheable so long as the server sets

    the appropriate Cache-Control and Expires headers.

@PUT: 

    PUT puts a file or resource at a specific URI, and exactly at that URI. If there's already a file or resource

    at that URI, PUT replaces that file or resource. If there is no file or resource there, PUT creates one.

    PUT is idempotent, but paradoxically PUT responses are not cacheable.

 

   put과 post는 비슷하지만 put은 특정 파일이나 자원을 특정 url에 해당 파일이나 자원이 있는 경우는 갱신을 하고

  없는 경우는 생성을 하게 된다. post는 특정 url에 대한 요청의 결과로 데이타를 보내는 것이며 웹서버에서

  해당 자원의 처리를 결정하게된다.

 

@DELETE : 특정 데이타를 서버에서 삭제

+ Recent posts