I'm looking into a restful design and would like to use the HTTP methods (
I don't think it's possible to do it in the way you are trying to do it.
Indication of the accepted data format is usually done through adding the extension to the resource name. So, if you have resource like
GET /resources/resource returns its HTML representation, to indicate that you want its XML representation instead, you can use following pattern:
You have to do the accepted content type determination magic on the server side, then.