当前位置: 技术问答>java相关
关于 put、Delete、Trace三个请求的问题
来源: 互联网 发布时间:2015-05-20
本文导语: 在 Servlet 中可以处理 doGet,doPost,doPut,doDelete,doTrace请求。 doGet、doPost 可以通过表单 在method中指定,那另外三个请求了,怎么触发呢? | doPut() Called by the server (via the service method) to allo...
在 Servlet 中可以处理 doGet,doPost,doPut,doDelete,doTrace请求。
doGet、doPost 可以通过表单
在method中指定,那另外三个请求了,怎么触发呢?
doGet、doPost 可以通过表单
在method中指定,那另外三个请求了,怎么触发呢?
|
doPut() Called by the server (via the service method) to allow a servlet to handle a PUT request. The PUT operation allows a client to place a file on the server and is similar to sending a file by FTP.
doPut()允许servlet去处理一个PUT请求,这个PUT请求允许客户端把一个文件放置到服务器上,就与使用FTP把文件上传。
doDelete() Called by the server (via the service method) to allow a servlet to handle a DELETE request. The DELETE operation allows a client to remove a document or Web page from the server.
doDelete()允许servlet去处理一个Delete请求,这个Delete请求允许客户端从服务器上移走一个文档或网页。
doTrace() Called by the server (via the service method) to allow a servlet to handle a TRACE request. A TRACE returns the headers sent with the TRACE request to the client, so that they can be used in debugging.
doTrace()允许servlet去处理一个Trace请求,这个Trace返回一个报头和Trace请求一起给客户端,因此可以在调试中使用
doPut()允许servlet去处理一个PUT请求,这个PUT请求允许客户端把一个文件放置到服务器上,就与使用FTP把文件上传。
doDelete() Called by the server (via the service method) to allow a servlet to handle a DELETE request. The DELETE operation allows a client to remove a document or Web page from the server.
doDelete()允许servlet去处理一个Delete请求,这个Delete请求允许客户端从服务器上移走一个文档或网页。
doTrace() Called by the server (via the service method) to allow a servlet to handle a TRACE request. A TRACE returns the headers sent with the TRACE request to the client, so that they can be used in debugging.
doTrace()允许servlet去处理一个Trace请求,这个Trace返回一个报头和Trace请求一起给客户端,因此可以在调试中使用
|