Wednesday, February 19, 2014

doGet(),doPost() , doPut(),doHead()

  • Get append the data to the URL as name value pair.
  • Post sends the data separately in the body of the request 
  • Get is for small amount of data 
  • Get requests can be bookmarked 
  • Get is used for simple html requests 
  • In Post request the query limit is unlimited 
  • User seen the data in the URL in Get request, can be a security issue. Post requests the data is hidden.
  • Get request is always ascii. Post can be both ascii and binary.
  • Post is used for posting long messages 
  • Put() is uploading the file to the server. But many container it wont work and Post is used instead.
  • Get request can be triggered by clicking on a link ,Typing address ,location.href and submitting a page with method ="get" in the form element.
  • Post is triggered when submitting an html form.
  • head() returns same header that Get return .But nobody or content 
  • Receives and return small amount of message faster and light weight.
 

No comments: