What is the purpose of doPUT() and doDELETE() method?

Questions by mail_2_mahendran

Showing Answers 1 - 4 of 4 Answers

santh kumar

  • Sep 22nd, 2006
 

 These 2 methods are called by the server.

doPut():- a servlet handles PUT request made by the client to put a file,web page or a document in the server and is similar to sending a file by FTP.

doDelete():- a servlet handles DELETE request made by the client to delete a file,web page or a document from the server.

if these requests are incorrectly formatted,They returns an HTTP "Bad Request" message.

with regards,

santh

  Was this answer useful?  Yes

doPUT: The PUT method is a complement of a GET request, and PUT stores the entity body at the location specified by the URI. It is similar to the PUT function in FTP.

doDELETE: The DELETE method is used to delete a document from the server. The document to be deleted is indicated in the URI section of the request.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions