I just make POST method work with an script, but i still have some
doubts about PUSH, and DELETE.

def testing():

    import urllib
    import urllib2
    params = {
        'name': request.args(0),
        'birth': request.args(1)
    }
    http_response = urllib2.urlopen('http://localhost/post/post_test',
urllib.urlencode(params))
    return http_response

Does anyone have some ideas in makinh PUSH AND DELETE work???



On May 18, 10:31 am, Tiago Moutinho <[email protected]> wrote:
> Hi,
>
> I have some difficulties on using @resquest.restful().
> I want to do some experiments using GET, POST, PUSH and DELETE, but i can
> not make it work.
> Only GET works for me.
>
> How can i do for example a def POST(name): ??
>
> I did this:
>
> def POST(name):
>     return db.blog.validate_and_insert(name = name)
>
> cumps,
> Tiago

Reply via email to