1

Should I use the GET or POST method when sending information to a server in the body of the HTTP request? There are no query parameters appended to the URL, the server will inspect the body of the request for what it needs.

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
MeanwhileInHell
  • 6,780
  • 17
  • 57
  • 106

3 Answers3

3

GET extracts parameters from the request URL. POST extracts parameters from the request body.

So you need POST.

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
0

A nice description and interesting discussion on the topic:

http://thinkvitamin.com/code/the-definitive-guide-to-get-vs-post/

Kelly
  • 40,173
  • 4
  • 42
  • 51
Raoul
  • 3,849
  • 3
  • 24
  • 30
0

POST should be used if you are not planing on using the query string.

Rikal
  • 153
  • 8