Re: [web2py] Weird behavior with restful api

2015-03-27 Thread Saifuddin Rangwala
Haven't done any configuration for sessions, it should be using the default configuration. Thanks, -Saif. On Fri, Mar 27, 2015 at 11:46 PM, Dave S wrote: > > > On Friday, March 27, 2015 at 10:18:37 AM UTC-7, Saifuddin Rangwala wrote: >> >> If I disable cookie manager with java HttpUrlConnection

Re: [web2py] Weird behavior with restful api

2015-03-27 Thread Dave S
On Friday, March 27, 2015 at 10:18:37 AM UTC-7, Saifuddin Rangwala wrote: > > If I disable cookie manager with java HttpUrlConnection, it works! Not > sure what has DAL got to do with cookies? > Sessions, perhaps? How have you configured your sessions? /dps > > On Fri, Mar 27, 2015 at 10:0

Re: [web2py] Weird behavior with restful api

2015-03-27 Thread Saifuddin Rangwala
If I disable cookie manager with java HttpUrlConnection, it works! Not sure what has DAL got to do with cookies? On Fri, Mar 27, 2015 at 10:08 PM, Saifuddin Rangwala < saifuddin.rangw...@gmail.com> wrote: > Pasting the output from web2py console, clearing it is getting the appid > as parameter co

Re: [web2py] Weird behavior with restful api

2015-03-27 Thread Saifuddin Rangwala
Pasting the output from web2py console, clearing it is getting the appid as parameter correctly. <> application.id,application.appname 1,Test 1 application.id,application.appname 1 application.id,application.appname 1 <> On Fri, Mar 27, 2015 at 10:04 PM, Saifuddin Rangwala < saifuddin.rangw...@

[web2py] Weird behavior with restful api

2015-03-27 Thread Saifuddin Rangwala
I have following code in my controller that exposes a restful json api. I am trying to lookup the application by id which is passed as a parameter to this api. Now if I hit this api using curl twice, both the times I see the expected behavior (i.e. application row is fetched from db and a row