Re: [web2py] restful api post works great localy, but getting login redirect on a remote server

2012-10-16 Thread Adi
Could I please ask someone with Apache/mod_wsgi to test this code? Everything works fine on a local rocket webserver, and also on nginx, but for some reason when it runs on Apache returns Not authorized. I just can't figure out where exactly is the problem. Same Apache server runs several

Re: [web2py] restful api post works great localy, but getting login redirect on a remote server

2012-10-11 Thread Adnan Smajlovic
Tried 2.09 nightly build on a completely different (redhat) server and still getting redirect, while post works as expected on a local rocket. Any hint where to look for a problem please? using: curl --user webserv...@domain.com:pass -d FirstName=Tim5LastName=Jsonhttp

Re: [web2py] restful api post works great localy, but getting login redirect on a remote server

2012-10-11 Thread Massimo Di Pierro
Please open a ticket about this and I will look in detail asap. On Thursday, 11 October 2012 09:44:04 UTC-5, Adi wrote: Tried 2.09 nightly build on a completely different (redhat) server and still getting redirect, while post works as expected on a local rocket. Any hint where to look for

Re: [web2py] restful api post works great localy, but getting login redirect on a remote server

2012-10-11 Thread Adnan Smajlovic
Thanks Massimo for looking into this. ticket opened: http://code.google.com/p/web2py/issues/detail?id=1080thanks=1080ts=1349992678 On Thu, Oct 11, 2012 at 5:05 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Please open a ticket about this and I will look in detail asap. On

[web2py] restful api post works great localy, but getting login redirect on a remote server

2012-10-10 Thread Adi
This is an example from book, where authentication and posting into database work good on a local server. Once I moved the code to production redhat linux server, where we have routes.py as bellow all I get as result is a login redirect: You are being redirected a href=