Hello Rick, the underlying question is what kind of POSTed representations do you intend to support? If you provide an HTML page where clients can POST a Web form, then you must have a "if" branch for "application/x-www-form-urlencoded" media type. If you want to support programmatic clients that are able to send POST requests with XML files, then you must have a "if" branch for "text/xml". If you support both, well, you have two "if" branches.
>But my next question is which mediatype should be used. Well, there is no rule at all. Any kind of media types is allowed, assuming that you are able to parse them, assuming also that you want to support them. best regards, Thierry Boileau > Hi Thierry, > Ok. I kinda agree with you regarding adding this condition of mediatype. > > But my next question is which mediatype should be used. I know we can use > either "text/xml" or "application/x-www-f​orm-urlencoded". > > I'll really appreciate if you can provide everyone details about which one > to use under what circumstances? > > Thanks! > > ------------------------------------------------------ > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2072728 > > ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2078476

