REST, PUT and DELETE

11 views
Skip to first unread message

Jos

unread,
Nov 12, 2007, 1:12:37 PM11/12/07
to Gluon Web Framework
Hey, glad to see the google group!

How might you allow the use of the HTTP verbs PUT and DELETE? I know a
fair number of people who build REST interfaces require these verbs...

mdip...@cs.depaul.edu

unread,
Nov 12, 2007, 1:19:19 PM11/12/07
to Gluon Web Framework
Try submit a rest request to a controller like

def index(): return HTML(BODY(BEAUTIFY(request.env))).xml()

You will see all environment variables been passed including the HTTP
header.

Massimo

mdip...@cs.depaul.edu

unread,
Nov 12, 2007, 1:20:53 PM11/12/07
to Gluon Web Framework
You may find convenient to write them to a file as well

def index():
open('/somewhere/request_log.html',
'w').write(HTML(BODY(BEAUTIFY(request.env))).xml())
return dict()


Reply all
Reply to author
Forward
0 new messages