A New Resource, Please

When creating a new resource, I happen to prefer POST over PUT because:

  • POST the server chooses the new URI, returning it as a Location header.
  • PUT the client chooses the new URI, which requires uniqueness such as the horrid GUID.

I also prefer POST for UPDATE, but only because PUT isn’t currently well supported by clients and is blocked by many corporate poxy-proxies.

Other people disagree, but the most convincing reason to change my preference is explained by an optimistic Paul.

Technorati Tags: