If a client application needs to request a large amount of data without affecting the server's state, which method should it use and why?

  • DELETE, because it is a safe method for retrieving data.
  • GET, because it is idempotent and does not modify the server's state.
  • POST, because it supports larger data payloads than GET.
  • PUT, because it is specifically designed for requesting large data sets.
The GET method is idempotent and does not modify the server's state, making it suitable for requesting large amounts of data without side effects. POST, although supporting larger payloads, is not intended for safe, idempotent operations.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *