On Jul 31, 8:28 am, 诚子 <[email protected]> wrote:
> Hi, I wan't use PUT method and DELETE method,to build a RESTful
> service,how to get an PUT method and DELETE data?

HTTP DELETE works fine :)

Check for it within your controller using:
if request.env.request_method == 'DELETE':

You can use this to test it:
http://code.google.com/p/rest-client/

I can't get the RESTclient to work with Auth though.
I see it send in the HTTP Header a line:
Authorization: Basic Zmxhdmetcetcetc===

I have set:
auth.settings.allow_basic_login = True

F
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to