# Unable to do a PUT, DELETE or POST

**URL:** https://community.ofelia.com/t/unable-to-do-a-put-delete-or-post/8391
**Category:** Q&A
**Created:** [18 April 2017 10:49 UTC](https://community.ofelia.com/t/unable-to-do-a-put-delete-or-post/8391 "2017-04-18T10:49:58Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![diana.bento](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@diana.bento](https://community.ofelia.com/u/diana.bento)
#### Post date: [18 April 2017 10:49 UTC](https://community.ofelia.com/t/unable-to-do-a-put-delete-or-post/8391/1 "2017-04-18T10:49:58Z")

</div>

“I’m unable to do a PUT, DELETE or POST request in Bonita 7.4.3, using the REST API. I’m always getting a 401 Http error, despite adding the cookie to every request. The GET request works with no problem”

---

<div class="post-metadata">

### Author: ![gmoriello](https://avatars.discourse-cdn.com/v4/letter/g/e56c9b/32.png) [@gmoriello](https://community.ofelia.com/u/gmoriello)
#### Post date: [19 April 2017 20:43 UTC](https://community.ofelia.com/t/unable-to-do-a-put-delete-or-post/8391/2 "2017-04-19T20:43:07Z")

</div>

Hi Diana,  
I’m rather new at Bonita myself, but recently have managed to make a full rest workflow. I had the same problem as you have. The only way I could solve it was:  
Install Postman (an alternative to advanced rest client). It stores the cookies for you, so it should behave just like a browser).  
Test all GET, POST, PUT, DELETEs there. Once is working, check the full messages sent.  
Then, try to produce the same messages in Bonita (headers, url, payload). In order to know exactly what you are sending from Bonita, I installed Fliddler, a network monitor. In order to analize Bonita traffic, you must add proxy settings in the REST connector in Bonita (I think that localhost:8888) but you can check that in Fiddler.  
I’ts a lot of work, and it took me a whole week to get it working ok, but now it’s OK.  
If you are still stuck by now, give it a try.

Regards  
Germán

---

<div class="post-metadata">

### Author: ![Sean\_McP](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/sean_mcp/32/932_2.png) [@Sean\_McP](https://community.ofelia.com/u/Sean_McP)
#### Post date: [19 April 2017 03:05 UTC](https://community.ofelia.com/t/unable-to-do-a-put-delete-or-post/8391/3 "2017-04-19T03:05:28Z")

</div>

You’ve definitely logged in?

Have you tried it through an Advanced REST Client (like chrome) manually. We tend to try this in these cases:

- Login
- Do Get
- Do Post
- Logout

Gives us the idea of where it goes wrong…

regards  
Seán

---

<div class="post-metadata">

### Author: ![diana.bento](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@diana.bento](https://community.ofelia.com/u/diana.bento)
#### Post date: [19 April 2017 10:01 UTC](https://community.ofelia.com/t/unable-to-do-a-put-delete-or-post/8391/4 "2017-04-19T10:01:43Z")

</div>

I´m trying to do this steps. But when I try to do DELETE and show error “401 Unauthorized”.  
[Delete](https://www.dropbox.com/s/zctsh79a2cruxsw/delete.png?dl=0)

---

<div class="post-metadata">

### Author: ![Sean\_McP](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/sean_mcp/32/932_2.png) [@Sean\_McP](https://community.ofelia.com/u/Sean_McP)
#### Post date: [19 April 2017 20:59 UTC](https://community.ofelia.com/t/unable-to-do-a-put-delete-or-post/8391/5 "2017-04-19T20:59:50Z")

</div>

Thanks to @gmoriello,

Postman is a chrome extension…

Fliddler I think is actually Fiddler available here: [https://www.telerik.com/download/fiddler](https://www.telerik.com/download/fiddler)

and if you’re a real geek … check out [http://www.piedpiper.com/#home](http://www.piedpiper.com/#home) from the hit HBO series Silicon Valley… found it by mistake.

regards

---

<div class="post-metadata">

### Author: ![diana.bento](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@diana.bento](https://community.ofelia.com/u/diana.bento)
#### Post date: [20 April 2017 09:25 UTC](https://community.ofelia.com/t/unable-to-do-a-put-delete-or-post/8391/6 "2017-04-20T09:25:10Z")

</div>

I try to do in postman and the result is the same: GET works; DELETE, PUT and POST doesn´t works.
