0

Possible Duplicates:
GET vs. POST (form processing)
When do you use POST and when do you use GET?

I'm interested in POST and GET. Why do I exactly need them and what is the difference between them? I know they both retrieve some data from some url, but that's probably all I know.

Community
  • 1
  • 1
lomza
  • 9,412
  • 15
  • 70
  • 85

1 Answers1

1

GET is purely for retrieval. One of the most important aspects of GET is that GET is never allowed to change the state of the server (meaning: modifications).

POST does allow that.

This distinction is incredibly important. So if you're fetching info based on a couple of parameters/filters/etc. GET will do fine, but as soon as you're modifying anything on the server you MUST use POST.

Evert
  • 93,428
  • 18
  • 118
  • 189