I am working on a Silverlight project that uses Django on the server using piston for the REST API. I understand that Silverlight doesn't support the PUT and DELETE http verbs. Is there another way i can pass these ki开发者_运维问答nds of commands to piston?
Silverlight 3 does support PUT and DELETE if you use client networking stack. For details see: How to: Specify Browser or Client HTTP Handling
As stated in the MSDN article, you need to use Client HTTP Handling in combination with a clientaccesspolicy.xml file that allows PUT and DELETE.
In there you have to set the http-methods attribute in the allow-from element; I set it to * to allow all HTTP verbs:
<allow-from http-request-headers="*" http-methods="*">
For an example of a very lenient clientaccesspolicy.xml look at this answer.
加载中,请稍侯......
精彩评论