marți, 18 martie 2014

When to use POST or PUT

Hello,
When I first started learning about POST and PUT I remember it was a bit of pain in the arse to differentiate the two of them and when to use them.

In a nutshell they both can do the same thing so you may be wondering why shoul you use PUT when you already have POST.
This is like a must know if you want to buil a RESTful application. Also the difference between REST and RESTful is that REST relates to the architecture and RESTful relates to implementing that architecture (REST) in a web application.

So let's get started:

You shoul use  POST when