# REST only receiving GET

**URL:** <https://discourse.cakephp.org/t/rest-only-receiving-get/1449>\
**Category:** Need Help\
**Created:** [November 4, 2016, 6:12am UTC](https://discourse.cakephp.org/t/rest-only-receiving-get/1449 "2016-11-04T06:12:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![classoutfit](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/classoutfit/32/410_2.png) [@classoutfit](https://discourse.cakephp.org/u/classoutfit)\
**Post date:** [November 4, 2016, 6:12am UTC](https://discourse.cakephp.org/t/rest-only-receiving-get/1449/1 "2016-11-04T06:12:36Z")

</div>

CakePHP 2.9.1. I’ve followed the cookbook instructions and have set up some json REST endpoints. GETs are fine, but any POST request is being interpreted as GETs too, even though they map to add actions. Any clues?

---

<div class="post-metadata">

**Author:** ![classoutfit](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/classoutfit/32/410_2.png) [@classoutfit](https://discourse.cakephp.org/u/classoutfit)\
**Post date:** [November 4, 2016, 6:51am UTC](https://discourse.cakephp.org/t/rest-only-receiving-get/1449/2 "2016-11-04T06:51:29Z")

</div>

I sort of solved this. I was testing using Postman but on my localhost. I moved the code to a remote server and it works. So now I need to find out why this is limited on localhost.

---

<div class="post-metadata">

**Author:** ![wschwarte](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/wschwarte/32/31_2.png) [@wschwarte](https://discourse.cakephp.org/u/wschwarte)\
**Post date:** [December 29, 2016, 7:52am UTC](https://discourse.cakephp.org/t/rest-only-receiving-get/1449/3 "2016-12-29T07:52:19Z")

</div>

The request methods are most likely not enabled in apache config (or other webserver).

> <https://stackoverflow.com/questions/1402229/why-does-my-web-server-software-disallow-put-and-delete-requests>
