<?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: Code Sample: Programmatically Download File Using C#</title>
	<atom:link href="http://www.onedotnetway.com/code-sample-programmatically-download-file-using-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.onedotnetway.com/code-sample-programmatically-download-file-using-c/</link>
	<description>Everything .Net</description>
	<lastBuildDate>Mon, 09 Jan 2012 00:09:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Shweta</title>
		<link>http://www.onedotnetway.com/code-sample-programmatically-download-file-using-c/comment-page-1/#comment-21033</link>
		<dc:creator>Shweta</dc:creator>
		<pubDate>Mon, 26 Apr 2010 04:23:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.onedotnetway.com/code-sample-programmatically-download-file-using-c/#comment-21033</guid>
		<description>Thanx dude</description>
		<content:encoded><![CDATA[<p>Thanx dude</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Narayana Karthik</title>
		<link>http://www.onedotnetway.com/code-sample-programmatically-download-file-using-c/comment-page-1/#comment-20928</link>
		<dc:creator>Narayana Karthik</dc:creator>
		<pubDate>Sat, 24 Apr 2010 07:06:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.onedotnetway.com/code-sample-programmatically-download-file-using-c/#comment-20928</guid>
		<description>The code is really helpful, but i Need one clarification

I want to download a file from the web and the url is the indirect url (there is no filename in the url it has query param), so code does not know about the file name, how can i get the file name
I ran through few stuffs for indirect url using webclient downloadfile method.
I have get filename in content-dispostion or content-location of the response headers.
But some times the response header does not have content-type or content-disposition (to get file name) in it, in this situation what can i do here to get the real file name?

Any help will be appreciated from this end.</description>
		<content:encoded><![CDATA[<p>The code is really helpful, but i Need one clarification</p>
<p>I want to download a file from the web and the url is the indirect url (there is no filename in the url it has query param), so code does not know about the file name, how can i get the file name<br />
I ran through few stuffs for indirect url using webclient downloadfile method.<br />
I have get filename in content-dispostion or content-location of the response headers.<br />
But some times the response header does not have content-type or content-disposition (to get file name) in it, in this situation what can i do here to get the real file name?</p>
<p>Any help will be appreciated from this end.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ArabicGeek</title>
		<link>http://www.onedotnetway.com/code-sample-programmatically-download-file-using-c/comment-page-1/#comment-16391</link>
		<dc:creator>ArabicGeek</dc:creator>
		<pubDate>Sun, 24 Jan 2010 11:27:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.onedotnetway.com/code-sample-programmatically-download-file-using-c/#comment-16391</guid>
		<description>aha ... thanks for help</description>
		<content:encoded><![CDATA[<p>aha &#8230; thanks for help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nikeeta</title>
		<link>http://www.onedotnetway.com/code-sample-programmatically-download-file-using-c/comment-page-1/#comment-12249</link>
		<dc:creator>nikeeta</dc:creator>
		<pubDate>Sat, 21 Nov 2009 11:18:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.onedotnetway.com/code-sample-programmatically-download-file-using-c/#comment-12249</guid>
		<description>hi all.. very use full article but.. can we use it in web aplication.. on internet.. where ever i get example of WebClient , i get it in window application, in web application, is it possible to add event handler &quot;DownloadDataCompletedEventHandler&quot; to track download complete ? any help on this will be appreciated.. thank u..</description>
		<content:encoded><![CDATA[<p>hi all.. very use full article but.. can we use it in web aplication.. on internet.. where ever i get example of WebClient , i get it in window application, in web application, is it possible to add event handler &#8220;DownloadDataCompletedEventHandler&#8221; to track download complete ? any help on this will be appreciated.. thank u..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HIMANSHU</title>
		<link>http://www.onedotnetway.com/code-sample-programmatically-download-file-using-c/comment-page-1/#comment-8744</link>
		<dc:creator>HIMANSHU</dc:creator>
		<pubDate>Thu, 27 Aug 2009 06:07:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.onedotnetway.com/code-sample-programmatically-download-file-using-c/#comment-8744</guid>
		<description>HI,
thx for the quick reply 
i&#039;ll just check and report back
thx again.</description>
		<content:encoded><![CDATA[<p>HI,<br />
thx for the quick reply<br />
i&#8217;ll just check and report back<br />
thx again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deepak</title>
		<link>http://www.onedotnetway.com/code-sample-programmatically-download-file-using-c/comment-page-1/#comment-8743</link>
		<dc:creator>Deepak</dc:creator>
		<pubDate>Thu, 27 Aug 2009 05:34:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.onedotnetway.com/code-sample-programmatically-download-file-using-c/#comment-8743</guid>
		<description>Hi Himanshu,

It should work fine with any file extension.</description>
		<content:encoded><![CDATA[<p>Hi Himanshu,</p>
<p>It should work fine with any file extension.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HIMANSHU</title>
		<link>http://www.onedotnetway.com/code-sample-programmatically-download-file-using-c/comment-page-1/#comment-8742</link>
		<dc:creator>HIMANSHU</dc:creator>
		<pubDate>Thu, 27 Aug 2009 05:30:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.onedotnetway.com/code-sample-programmatically-download-file-using-c/#comment-8742</guid>
		<description>Hi,
I need to know if this Code works Successfully for Downloading a file with .pdf extension on my local system drive I&#039;hv tried a similar but failed to do so 

I need to download a file opened in a browser with .pdf extension

Plz Help
Help Would Be Appreciated
Himanshu</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I need to know if this Code works Successfully for Downloading a file with .pdf extension on my local system drive I&#8217;hv tried a similar but failed to do so </p>
<p>I need to download a file opened in a browser with .pdf extension</p>
<p>Plz Help<br />
Help Would Be Appreciated<br />
Himanshu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deepak</title>
		<link>http://www.onedotnetway.com/code-sample-programmatically-download-file-using-c/comment-page-1/#comment-5342</link>
		<dc:creator>Deepak</dc:creator>
		<pubDate>Sun, 14 Jun 2009 00:06:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.onedotnetway.com/code-sample-programmatically-download-file-using-c/#comment-5342</guid>
		<description>Bikash,

Thank you for your comment.</description>
		<content:encoded><![CDATA[<p>Bikash,</p>
<p>Thank you for your comment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bikash</title>
		<link>http://www.onedotnetway.com/code-sample-programmatically-download-file-using-c/comment-page-1/#comment-5320</link>
		<dc:creator>Bikash</dc:creator>
		<pubDate>Sat, 13 Jun 2009 11:08:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.onedotnetway.com/code-sample-programmatically-download-file-using-c/#comment-5320</guid>
		<description>Hello! Thank you for the post.</description>
		<content:encoded><![CDATA[<p>Hello! Thank you for the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: S.P.I.D.E.R.M.A.N</title>
		<link>http://www.onedotnetway.com/code-sample-programmatically-download-file-using-c/comment-page-1/#comment-1551</link>
		<dc:creator>S.P.I.D.E.R.M.A.N</dc:creator>
		<pubDate>Tue, 03 Mar 2009 06:38:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.onedotnetway.com/code-sample-programmatically-download-file-using-c/#comment-1551</guid>
		<description>Thank dude for a quick reply!
I&#039;ll try this.
Good Day!</description>
		<content:encoded><![CDATA[<p>Thank dude for a quick reply!<br />
I&#8217;ll try this.<br />
Good Day!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

