开发者

How to set the Expect header in Silverlight 4.0 to ignore HTTP status code 100

I want the Silverlight 4.0 c开发者_开发知识库lient to ignore '100-continue' response code from a RESTful resource service, to do this i need to be able to set the Expect header - ' Expect: 100-continue' is this possible with the HttpWebRequest class?

All the normal ways of doing this are not supported in Silverlight 4.0.


Can you look at the Silverlight security policy? You have to add the "Expect" header to the list of allowed headers in you clientaccesspolicy.xml. Give that a try.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜