<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>//g9e.net &#187; .NET</title>
	<atom:link href="http://www.g9e.net/category/coding/net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.g9e.net</link>
	<description></description>
	<lastBuildDate>Thu, 28 Apr 2011 11:15:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>System.Net.WebClient</title>
		<link>http://www.g9e.net/2010/07/05/system-net-webclient/</link>
		<comments>http://www.g9e.net/2010/07/05/system-net-webclient/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 07:38:27 +0000</pubDate>
		<dc:creator>Gerrit</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[coding]]></category>

		<guid isPermaLink="false">http://www.g9e.net/?p=48</guid>
		<description><![CDATA[In one of my applications I&#8217;m using the WebClient class (from namespace System.Net) to download a file from the internet. The syntax is pretty easy:

var client : WebClient := new WebClient();
client.DownloadFile(src, dst);

With src and dst being strings. This worked always fine for me until recently after I&#8217;ve installed a proxy. To have WebClient automatically use [...]]]></description>
			<content:encoded><![CDATA[<p>In one of my applications I&#8217;m using the <a href="http://msdn.microsoft.com/de-de/library/system.net.webclient.aspx">WebClient class</a> (from namespace System.Net) to download a file from the internet. The syntax is pretty easy:</p>
<pre class="prettyprint">
var client : WebClient := new WebClient();
client.DownloadFile(src, dst);
</pre>
<p>With src and dst being strings. This worked always fine for me until recently after I&#8217;ve installed a proxy. To have WebClient automatically use your proxy-settings (e.g. taken from the Internet Explorer) simply add the following line after instantiating WebClient:</p>
<pre class="prettyprint">
client.Proxy := new WebProxy;
</pre>
<p>To learn more about automatic proxy detection read on <a href="http://msdn.microsoft.com/en-us/library/fze2ytx2(VS.90).aspx">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.g9e.net/2010/07/05/system-net-webclient/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

