0

I need to understand the PUT function by seeing examples with code, I wonder if this is possible:

Since most browsers do not support HTTP methods other than GET and POST, we mimic other methods (like PUT and DELETE) as follows. We send a normal POST request and add a parameter _method=PUT or _method=DELETE (take care of the underscore)

and how plz give me examples thanks in advance

Mina Fouad
  • 79
  • 1
  • 4
  • 11

1 Answers1

1

This post tells me that PUT isn't part of the specification.

Here is an example of a REST client implementing a put.

Community
  • 1
  • 1
David Weiser
  • 5,190
  • 4
  • 28
  • 35
  • OK, if you understand it, please explain what it can do by general examples – Mina Fouad Apr 08 '11 at 22:22
  • Since most browsers do not support HTTP methods other than GET and POST, we mimic other methods (like PUT and DELETE) as follows. We send a normal POST request and add a parameter _method=PUT or _method=DELETE (take care of the underscore). – Mina Fouad Apr 08 '11 at 22:23