开发者

Get webpage content from silverlight?

开发者 https://www.devze.com 2023-02-25 03:47 出处:网络
I want to use Silverlight to parse http://www.downforeveryoneorjustme.com/http://bing.com/ and see if \"bing.com\" is up. Is this possible in开发者_JAVA百科 a Silverlight site (running in-browser with

I want to use Silverlight to parse http://www.downforeveryoneorjustme.com/http://bing.com/ and see if "bing.com" is up. Is this possible in开发者_JAVA百科 a Silverlight site (running in-browser with no elevated trust)?


It's possible if you can get their participation- they'd need a clientaccesspolicy.xml or crossdomain.xml that allows your hosting domain (or all domains) access. Without that, you're pretty much hosed for direct access from Silverlight without elevated trust.

That said, you could easily have the server that's hosting your Silverlight xap make the outbound connection via a service call, then proxy the result back to a Silverlight client.

0

精彩评论

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