Re: [Pharo-users] Rest post methods

2017-01-02 Thread Asbath Sama biyalou via Pharo-users
--- Begin Message --- Thanks Sven. I will try it. On 02/01/2017 23:49, Sven Van Caekenberghe wrote: >> On 2 Jan 2017, at 20:42, Asbath Sama biyalou wrote: >> >> Thanks Sven. >> >> That is fine. According to your answer this is not a problem of >> implementation of rest methods. > Indeed. > >> Bu

Re: [Pharo-users] Rest post methods

2017-01-02 Thread Sven Van Caekenberghe
> On 2 Jan 2017, at 20:42, Asbath Sama biyalou wrote: > > Thanks Sven. > > That is fine. According to your answer this is not a problem of > implementation of rest methods. Indeed. > But It is a problem of client. Yes. > Then Have you an idea on how to do that client on Android? I am afrai

Re: [Pharo-users] Rest post methods

2017-01-02 Thread Asbath Sama biyalou via Pharo-users
--- Begin Message --- Thanks Sven. That is fine. According to your answer this is not a problem of implementation of rest methods. But It is a problem of client. Then Have you an idea on how to do that client on Android? Cheers Asbath On 02/01/2017 18:57, Sven Van Caekenberghe wrote: > Hi Asb

Re: [Pharo-users] Rest post methods

2017-01-02 Thread Sven Van Caekenberghe
Hi Asbath, From what I can see in the code included in the email, you wrote a POST handler that expects/accepts JSON, while the client call sends a application/x-www-form-urlencoded payload. You need to send JSON data. The following creates a client that sends and expects JSON. ZnClient new

[Pharo-users] Rest post methods

2017-01-02 Thread Asbath Sama biyalou via Pharo-users
--- Begin Message --- Hello Everybody. I am implementing an architecture of rest services like in TinyBlog tutorial. Now I want to implement post methods. But it doesn't work. My execute function execute | user u | [ user := NeoJSONReader fromString: self context request rawBody