> Hi Kuba,
>
> the equivalent of this in Django
>
>> def add_cdr(request):
>> cdr = request.POST['cdr']
>> return HttpResponse("OK")
>
> in web2py would be
>
> def add_crd():
> return request.vars.cdr
>
> or more specifically to capture POST vars and not GET vars
>
> def add_crd():
> return request.post_vars.cdr
Yes, that is what I wrote.
This is exactly what is NOT working for me..
def add_cdr():
print request.post_vars.cdr
return request.post_vars.cdr
I get "None" in console. It works perfectly when I change url to
Django app or PHP app with a code below:
<?php
Header("Content-type: text/plain");
$cdr = $_POST['cdr'];
...
I know this is a strange behavior, it is probably an issue not
connected with web2py but I simply don't understand what is happening
here..
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---