如何在 Silverlight 4.0 中设置 Expect 标头以忽略 HTTP 状态代码 100
我希望 Silverlight 4.0 客户端忽略来自 RESTful 资源服务的“100-Continue”响应代码,为此我需要能够设置 Expect 标头 -“Expect: 100-Continue”这对于 HttpWebRequest 类来说可能吗?
Silverlight 4.0 不支持执行此操作的所有常规方法。
I want the Silverlight 4.0 client 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您能看一下 Silverlight 安全策略吗?您必须将“Expect”标头添加到 clientaccesspolicy.xml 中允许的标头列表中。尝试一下。
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.