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 kinds of commands to piston?
Asked
Active
Viewed 1,277 times
2 Answers
2
Silverlight 3 does support PUT and DELETE if you use client networking stack. For details see: How to: Specify Browser or Client HTTP Handling

PL.
- 2,195
- 12
- 10
-
ok so i got further than before by registering the clienthttp prefix, but now i'm getting a security error. i assumed this was a problem with crossdomain.xml, so i added
, but i'm still getting the security error. is there something else i need to do to allow PUT and DELETE? – Jason Miesionczek Mar 13 '10 at 15:32 -
i also just added a clientaccesspolicy.xml file, and nothing changed :( – Jason Miesionczek Mar 14 '10 at 05:47
-
eh, decided to switch to ASP.NET MVC + RIA Services for this project. thanks for the help anyways. i'll give ya the check mark. – Jason Miesionczek Mar 17 '10 at 15:05
0
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.