如何在 Silverlight 4.0 中设置 Expect 标头以忽略 HTTP 状态代码 100

发布于 2024-09-25 02:24:21 字数 178 浏览 1 评论 0原文

我希望 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浮光之海 2024-10-02 02:24:21

您能看一下 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文