0

what http methods are used in servlets to upload/delete files from server:

  • POST
  • GET
  • PUT
  • OPTIONS
  • DELETE
Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
user3085390
  • 187
  • 9

2 Answers2

0

For uploading file you should use post and multipart request amd to delete - delete.

Thrash Bean
  • 658
  • 4
  • 7
0

Use PUT for uploads, DELETE for deletion.
Here is a nice answer with more details:Which HTTP methods match up to which CRUD methods?

Community
  • 1
  • 1
Antoine Wils
  • 349
  • 2
  • 4
  • 21