Skip to main content
2 of 3
Grammar
Stephen Ostermiller
  • 99.4k
  • 18
  • 141
  • 364

What is the need of methods like GET and POST in the HTTP protocol?

Can we not implement the HTTP protocol using just a request body and a response body?

For example, the URL will contain request, which will be mapped to a function depending on programming language on server side say a Servlet and in response HTML and JavaScript response will be sent across.

Is implementing various HTTP methods really needed?

user104656
  • 191
  • 1
  • 3