<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Silverlight HTTP Networking Stack – Part 1 (Site of Origin Communication)</title>
	<atom:link href="http://scorbs.com/2008/04/05/silverlight-http-networking-stack-part-1-site-of-origin-communication/feed/" rel="self" type="application/rss+xml" />
	<link>http://scorbs.com/2008/04/05/silverlight-http-networking-stack-part-1-site-of-origin-communication/</link>
	<description>karen corby's fabulous blog</description>
	<lastBuildDate>Tue, 16 Feb 2010 20:10:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Recent Links: ASP.NET, ASP.NET AJAX, ASP.NET MVC, Silverlight &#171; Tad Wang&#8217;s Weblog</title>
		<link>http://scorbs.com/2008/04/05/silverlight-http-networking-stack-part-1-site-of-origin-communication/comment-page-1/#comment-2479</link>
		<dc:creator>Recent Links: ASP.NET, ASP.NET AJAX, ASP.NET MVC, Silverlight &#171; Tad Wang&#8217;s Weblog</dc:creator>
		<pubDate>Fri, 18 Dec 2009 20:26:02 +0000</pubDate>
		<guid isPermaLink="false">http://scorbs.com/2008/04/05/silverlight-http-networking-stack-part-1-site-of-origin-communication/#comment-2479</guid>
		<description>[...] Silverlight HTTP Networking Stack (Part 1), (Part 2), (Part 3): Karen Corby from the Silverlight team has a great three part blog series that talks about the new Silverlight 2 networking stack and how cross domain security works with it. [...]</description>
		<content:encoded><![CDATA[<p>[...] Silverlight HTTP Networking Stack (Part 1), (Part 2), (Part 3): Karen Corby from the Silverlight team has a great three part blog series that talks about the new Silverlight 2 networking stack and how cross domain security works with it. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Bachmann</title>
		<link>http://scorbs.com/2008/04/05/silverlight-http-networking-stack-part-1-site-of-origin-communication/comment-page-1/#comment-603</link>
		<dc:creator>Phil Bachmann</dc:creator>
		<pubDate>Mon, 26 Jan 2009 08:38:01 +0000</pubDate>
		<guid isPermaLink="false">http://scorbs.com/2008/04/05/silverlight-http-networking-stack-part-1-site-of-origin-communication/#comment-603</guid>
		<description>Dear Karen,

The fact that Silverlight has limited features is no problem for me - I understand that with a smaller runtime you get less features, and I am grateful for the Silverlight alternative to WPF.  A workaround is easy enough once you know where the problem is.

Which brings me to my point.  I wasted a lot of time trying to figure out why I was only getting FileNotFound responses to my web requests.  Stupidly, I referred to the online help:

http://msdn.microsoft.com/en-us/library/system.net.httpwebresponse.statuscode(VS.95).aspx

and it didn&#039;t tell me of the limitations so I just kept plugging away.

So please keep your help files up to date and don&#039;t forget to include the bad news.</description>
		<content:encoded><![CDATA[<p>Dear Karen,</p>
<p>The fact that Silverlight has limited features is no problem for me &#8211; I understand that with a smaller runtime you get less features, and I am grateful for the Silverlight alternative to WPF.  A workaround is easy enough once you know where the problem is.</p>
<p>Which brings me to my point.  I wasted a lot of time trying to figure out why I was only getting FileNotFound responses to my web requests.  Stupidly, I referred to the online help:</p>
<p><a href="http://msdn.microsoft.com/en-us/library/system.net.httpwebresponse.statuscode(VS.95).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/system.net.httpwebresponse.statuscode(VS.95).aspx</a></p>
<p>and it didn&#8217;t tell me of the limitations so I just kept plugging away.</p>
<p>So please keep your help files up to date and don&#8217;t forget to include the bad news.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Newly Noted #4 &#124; Patrick Verbruggen's Blog</title>
		<link>http://scorbs.com/2008/04/05/silverlight-http-networking-stack-part-1-site-of-origin-communication/comment-page-1/#comment-635</link>
		<dc:creator>Newly Noted #4 &#124; Patrick Verbruggen's Blog</dc:creator>
		<pubDate>Mon, 12 Jan 2009 19:06:03 +0000</pubDate>
		<guid isPermaLink="false">http://scorbs.com/2008/04/05/silverlight-http-networking-stack-part-1-site-of-origin-communication/#comment-635</guid>
		<description>[...] Silverlight HTTP Networking Stack – Part 1: Site of Origin Communication: First of a three-part series on HTTP communication from Silverlight [...]</description>
		<content:encoded><![CDATA[<p>[...] Silverlight HTTP Networking Stack – Part 1: Site of Origin Communication: First of a three-part series on HTTP communication from Silverlight [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hot Find #1, Dec 2008 - Anytao.net</title>
		<link>http://scorbs.com/2008/04/05/silverlight-http-networking-stack-part-1-site-of-origin-communication/comment-page-1/#comment-630</link>
		<dc:creator>Hot Find #1, Dec 2008 - Anytao.net</dc:creator>
		<pubDate>Tue, 30 Dec 2008 02:48:24 +0000</pubDate>
		<guid isPermaLink="false">http://scorbs.com/2008/04/05/silverlight-http-networking-stack-part-1-site-of-origin-communication/#comment-630</guid>
		<description>[...] Silverlight HTTP Networking Stack – Part 1 (Site of Origin Communication) [...]</description>
		<content:encoded><![CDATA[<p>[...] Silverlight HTTP Networking Stack – Part 1 (Site of Origin Communication) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Tindall</title>
		<link>http://scorbs.com/2008/04/05/silverlight-http-networking-stack-part-1-site-of-origin-communication/comment-page-1/#comment-602</link>
		<dc:creator>Jeff Tindall</dc:creator>
		<pubDate>Thu, 30 Oct 2008 20:51:48 +0000</pubDate>
		<guid isPermaLink="false">http://scorbs.com/2008/04/05/silverlight-http-networking-stack-part-1-site-of-origin-communication/#comment-602</guid>
		<description>Karen -

In your post, you show the use of custom headers and in the reply.  You also seem to point to them as a work around for other limitations (X-HTTP-Method-Override).  However, when I actually try to use a custom header in Silverlight, it bombs.  Remove the custom header and all is good (except of course you can&#039;t do what you are trying to accomplish).  Is this something that is supposed to work or was it intentionally left out?

Thanks,
~Jeff</description>
		<content:encoded><![CDATA[<p>Karen -</p>
<p>In your post, you show the use of custom headers and in the reply.  You also seem to point to them as a work around for other limitations (X-HTTP-Method-Override).  However, when I actually try to use a custom header in Silverlight, it bombs.  Remove the custom header and all is good (except of course you can&#8217;t do what you are trying to accomplish).  Is this something that is supposed to work or was it intentionally left out?</p>
<p>Thanks,<br />
~Jeff</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://scorbs.com/2008/04/05/silverlight-http-networking-stack-part-1-site-of-origin-communication/comment-page-1/#comment-612</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Sat, 26 Jul 2008 12:44:57 +0000</pubDate>
		<guid isPermaLink="false">http://scorbs.com/2008/04/05/silverlight-http-networking-stack-part-1-site-of-origin-communication/#comment-612</guid>
		<description>Thanks for this post. I built a File Upload tool in Silverlight 2 beta 1, and just recently ported it to beta 2. Your article was very useful to me when I reworked the client/server communications, I use WebRequest together with a helper class I built to invoke PageMethods in ASP.NET pages. The changes from beta 1 to beta 2 (requests now running in their own thread etc) gave me headaches, but thanks to your post I could solve the problems!</description>
		<content:encoded><![CDATA[<p>Thanks for this post. I built a File Upload tool in Silverlight 2 beta 1, and just recently ported it to beta 2. Your article was very useful to me when I reworked the client/server communications, I use WebRequest together with a helper class I built to invoke PageMethods in ASP.NET pages. The changes from beta 1 to beta 2 (requests now running in their own thread etc) gave me headaches, but thanks to your post I could solve the problems!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eamon Nerbonne</title>
		<link>http://scorbs.com/2008/04/05/silverlight-http-networking-stack-part-1-site-of-origin-communication/comment-page-1/#comment-581</link>
		<dc:creator>Eamon Nerbonne</dc:creator>
		<pubDate>Thu, 19 Jun 2008 14:25:16 +0000</pubDate>
		<guid isPermaLink="false">http://scorbs.com/2008/04/05/silverlight-http-networking-stack-part-1-site-of-origin-communication/#comment-581</guid>
		<description>WebClient&#039;s DownloadString &amp; DownloadData methods are unfortunately very limited:

WebClient ignores HTTP headers concerning the encoding of the response.  This means that UTF-8 response will incorrectly be decoded using whatever is the default system code-page (and thus break extended characters very easily in an internationalization-dependent fashion).  This is most unfortunate; HTTP supports the specification of a character set via the MIME type (or an explicit header) - is there a chance this will be fixed?

Concretely, unless a developer is extremely careful, using WebClient will result in a broken program depending on where the silverlight app is run, and even if the developer is extremely careful, it&#039;s not possible to perform a robust http request using WebClient; instead, a rather complex series of fallbacks must be implemented using HttpRequest.  Even without encoding auto-detection, such an implementation is needlessly error-prone and difficult to test, and as such would be a prime candidate for inclusion in WebClient (which seems to be intended to be simple, after all).</description>
		<content:encoded><![CDATA[<p>WebClient&#8217;s DownloadString &amp; DownloadData methods are unfortunately very limited:</p>
<p>WebClient ignores HTTP headers concerning the encoding of the response.  This means that UTF-8 response will incorrectly be decoded using whatever is the default system code-page (and thus break extended characters very easily in an internationalization-dependent fashion).  This is most unfortunate; HTTP supports the specification of a character set via the MIME type (or an explicit header) &#8211; is there a chance this will be fixed?</p>
<p>Concretely, unless a developer is extremely careful, using WebClient will result in a broken program depending on where the silverlight app is run, and even if the developer is extremely careful, it&#8217;s not possible to perform a robust http request using WebClient; instead, a rather complex series of fallbacks must be implemented using HttpRequest.  Even without encoding auto-detection, such an implementation is needlessly error-prone and difficult to test, and as such would be a prime candidate for inclusion in WebClient (which seems to be intended to be simple, after all).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://scorbs.com/2008/04/05/silverlight-http-networking-stack-part-1-site-of-origin-communication/comment-page-1/#comment-617</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Tue, 17 Jun 2008 07:33:14 +0000</pubDate>
		<guid isPermaLink="false">http://scorbs.com/2008/04/05/silverlight-http-networking-stack-part-1-site-of-origin-communication/#comment-617</guid>
		<description>Hi,

With ref to synch calls, i appreciate that asynch are largely preferable and we would be using them if we could but we are building a mapping site which calls to a GIS application for content. This application solely supports synchronous calls and so we are now in a position of looking for another GIS engine or using another web delivery mechanism...

Andy</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>With ref to synch calls, i appreciate that asynch are largely preferable and we would be using them if we could but we are building a mapping site which calls to a GIS application for content. This application solely supports synchronous calls and so we are now in a position of looking for another GIS engine or using another web delivery mechanism&#8230;</p>
<p>Andy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://scorbs.com/2008/04/05/silverlight-http-networking-stack-part-1-site-of-origin-communication/comment-page-1/#comment-598</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 11 Jun 2008 06:18:49 +0000</pubDate>
		<guid isPermaLink="false">http://scorbs.com/2008/04/05/silverlight-http-networking-stack-part-1-site-of-origin-communication/#comment-598</guid>
		<description>Interesting, and i see why you when this route.

What I would like to see is example of searching and downloading YouTube videos.   I believe these API are created to build RIA sites that consume you own content, but not the content from other sites, or at least friendly sites.

I wish someone would just say  &quot;YouTube and Google Content are just off limits to silverlight, no mater what type of cross domain support we provide&quot;

IS THIS TRUE?  if not can you provide a simple example?</description>
		<content:encoded><![CDATA[<p>Interesting, and i see why you when this route.</p>
<p>What I would like to see is example of searching and downloading YouTube videos.   I believe these API are created to build RIA sites that consume you own content, but not the content from other sites, or at least friendly sites.</p>
<p>I wish someone would just say  &#8220;YouTube and Google Content are just off limits to silverlight, no mater what type of cross domain support we provide&#8221;</p>
<p>IS THIS TRUE?  if not can you provide a simple example?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart Carnie</title>
		<link>http://scorbs.com/2008/04/05/silverlight-http-networking-stack-part-1-site-of-origin-communication/comment-page-1/#comment-600</link>
		<dc:creator>Stuart Carnie</dc:creator>
		<pubDate>Thu, 01 May 2008 16:45:27 +0000</pubDate>
		<guid isPermaLink="false">http://scorbs.com/2008/04/05/silverlight-http-networking-stack-part-1-site-of-origin-communication/#comment-600</guid>
		<description>Karen,

The GET / POST methods are okay, since we can use the x-http-method-override pattern.

I am concerned about the limited support for HTTP response codes.  How would we handle a 401 to implement security?

A real world example of something I am working on is to consume RESTful services in a SilverLight client via a server, which is secured using digest authentication.  It would seem awkward to navigate to the web server and be prompted with the browser&#039;s default credentials dialog prior to even downloading the SilverLight application.  How would we do this in a cross-domain scenario?

I also noticed that the  WebClient class does not even have a Credentials (ICredentials) property like the full framework.

Cheers,

Stuart</description>
		<content:encoded><![CDATA[<p>Karen,</p>
<p>The GET / POST methods are okay, since we can use the x-http-method-override pattern.</p>
<p>I am concerned about the limited support for HTTP response codes.  How would we handle a 401 to implement security?</p>
<p>A real world example of something I am working on is to consume RESTful services in a SilverLight client via a server, which is secured using digest authentication.  It would seem awkward to navigate to the web server and be prompted with the browser&#8217;s default credentials dialog prior to even downloading the SilverLight application.  How would we do this in a cross-domain scenario?</p>
<p>I also noticed that the  WebClient class does not even have a Credentials (ICredentials) property like the full framework.</p>
<p>Cheers,</p>
<p>Stuart</p>
]]></content:encoded>
	</item>
</channel>
</rss>
