On my local version of the application, making the request with the following code, executes the code on the server, returning successfully.
$.ajax({ type: 'POST', url: "{{=URL('default', 'serverFunction.json')}}", data: {id: id}}); However, if I make the request like so (without '.json' after serverFunction) $.ajax({ type: 'POST', url: "{{=URL('default', 'serverFunction')}}", data: {id: id}}); The server code executes, but returns a 404 error. On the online version, it returns a 404 error in both cases, executing the server code. Cross-posting from here: http://stackoverflow.com/questions/38870171/web2py-request-different-behavior-on-local-and-online-version-server-code-execu -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.