Silverlight 3 中的新客户端网络堆栈可以直接连接到 Azure 存储或 Mesh 吗?
在 Silverlight 3 中,我们引入了客户端 HTTP 堆栈作为选项 以及。 您必须选择使用客户端 HTTP 处理。 这给出了 您不仅能够进行 GET/POST(即更加 REST-ful 动词),使用响应状态代码/标头等。您可以选择 对所有请求、特定请求使用客户端 HTTP 堆栈 域,或基于每个请求,如下所示:
HttpWebRequest 请求 = (HttpWebRequest)WebRequestCreator.ClientHttp.Create(new Uri( http://api.search.live.net/qson.aspx?query=Silverlight));
我的理解是 Silverlight 无法直接访问 Azure 存储的原因是它无法使用身份验证数据对 HTTP 标头进行签名。 这是否可以弥补差距并允许直接访问 Azure 存储或网格? 如果是的话,这是如何实现的?
In Silverlight 3 we’ve introduced the Client HTTP stack as an option
as well. You must opt-in to use the client HTTP handling. This gives
you the ability to go more than just GET/POST (i.e., more REST-ful
verbs), using response status codes/headers, etc. You can opt-in to
use the client HTTP stack on all requests, requests for a specific
domain, or on a per-request basis like this:HttpWebRequest request = (HttpWebRequest)WebRequestCreator.ClientHttp.Create(new Uri( http://api.search.live.net/qson.aspx?query=Silverlight));
My understanding is that the reason Silverlight couldn't directly access Azure Storage is that it was unable to sign the HTTP headers with authentication data. Would this bridge the gap and allow direct access to Azure Storage or Mesh? If so, how is that accomplished?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不确定,但你不想这样做,因为你的密钥将在客户端上。 任何加载您的 Silverlight 代码的人都可以破解二进制文件并找到您的密钥,然后像您一样操作数据。
解决此问题的一种方法是通过您控制的服务器代理您的请求。
在您提问之前,我们已经意识到这个问题,但现在没有任何消息可以宣布。
I'm not sure but you don't want to do this as your secret key would be on the client. Anyone loading your Silverlight code could crack open the binary and find your keys and then manipulate the data as if they were you.
One way to fix this is to proxy your requests through a server you control.
Before you ask, we are aware of this issue but don't have anything to announce now.
我查了一下,恐怕您无法在 Silverlight 3 中执行此操作。抱歉:-(。
I checked and I'm afraid you cannot do this in Silverlight 3. Sorry :-(.