<?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: My First .Net 2.0 Gripe: System.Net.Webclient</title>
	<atom:link href="http://www.pinkjoint.com/spongbo/98/my-first-net-20-gripe-systemnetwebclient/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pinkjoint.com/spongbo/98/my-first-net-20-gripe-systemnetwebclient/</link>
	<description>the only pink is in the name, and also the colours.</description>
	<lastBuildDate>Sun, 15 Jan 2012 03:13:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Zoran</title>
		<link>http://www.pinkjoint.com/spongbo/98/my-first-net-20-gripe-systemnetwebclient/comment-page-1/#comment-2578</link>
		<dc:creator>Zoran</dc:creator>
		<pubDate>Wed, 30 Aug 2006 09:45:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.pinkjoint.com/?p=98#comment-2578</guid>
		<description>I have found it , and now does work! OK.
I don&#039;t have to rewrite it.

Imports System.Net

Friend Class MyWebClient
    Inherits WebClient

    Protected Overloads Overrides Function GetWebRequest(ByVal address As Uri) As WebRequest
        Dim req As FtpWebRequest = CType(MyBase.GetWebRequest(address), FtpWebRequest)
        req.UsePassive = False
        Return req
    End Function
End Class</description>
		<content:encoded><![CDATA[<p>I have found it , and now does work! OK.<br />
I don&#8217;t have to rewrite it.</p>
<p>Imports System.Net</p>
<p>Friend Class MyWebClient<br />
    Inherits WebClient</p>
<p>    Protected Overloads Overrides Function GetWebRequest(ByVal address As Uri) As WebRequest<br />
        Dim req As FtpWebRequest = CType(MyBase.GetWebRequest(address), FtpWebRequest)<br />
        req.UsePassive = False<br />
        Return req<br />
    End Function<br />
End Class</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zoran</title>
		<link>http://www.pinkjoint.com/spongbo/98/my-first-net-20-gripe-systemnetwebclient/comment-page-1/#comment-2577</link>
		<dc:creator>Zoran</dc:creator>
		<pubDate>Wed, 30 Aug 2006 08:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.pinkjoint.com/?p=98#comment-2577</guid>
		<description>Could a have a complete example of this:
&quot;and it looks like you might be able to inherit from WebClient and override the protected GetWebRequest() method&quot;
regards,</description>
		<content:encoded><![CDATA[<p>Could a have a complete example of this:<br />
&#8220;and it looks like you might be able to inherit from WebClient and override the protected GetWebRequest() method&#8221;<br />
regards,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SpongBo</title>
		<link>http://www.pinkjoint.com/spongbo/98/my-first-net-20-gripe-systemnetwebclient/comment-page-1/#comment-2552</link>
		<dc:creator>SpongBo</dc:creator>
		<pubDate>Wed, 30 Aug 2006 01:10:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.pinkjoint.com/?p=98#comment-2552</guid>
		<description>Didn&#039;t even occur to me! Thanks!</description>
		<content:encoded><![CDATA[<p>Didn&#8217;t even occur to me! Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle Strickland</title>
		<link>http://www.pinkjoint.com/spongbo/98/my-first-net-20-gripe-systemnetwebclient/comment-page-1/#comment-2546</link>
		<dc:creator>Kyle Strickland</dc:creator>
		<pubDate>Tue, 29 Aug 2006 18:06:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.pinkjoint.com/?p=98#comment-2546</guid>
		<description>I&#039;m just having the same problem, and it looks like you might be able to inherit from WebClient and override the protected GetWebRequest() method to check whether the request is an FtpWebRequest and if so, clear UsePassive.

See the example here: http://msdn2.microsoft.com/en-us/library/system.net.webclient.getwebrequest.aspx

I reckon you have already figured that out, and that&#039;s still more than four lines of code, but here you go anyhow.</description>
		<content:encoded><![CDATA[<p>I&#8217;m just having the same problem, and it looks like you might be able to inherit from WebClient and override the protected GetWebRequest() method to check whether the request is an FtpWebRequest and if so, clear UsePassive.</p>
<p>See the example here: <a href="http://msdn2.microsoft.com/en-us/library/system.net.webclient.getwebrequest.aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/system.net.webclient.getwebrequest.aspx</a></p>
<p>I reckon you have already figured that out, and that&#8217;s still more than four lines of code, but here you go anyhow.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

