Reputation: 483
I have to work on an application like Website Downloader which should allow user to download full website (all the files of the website) to specified location on the disk through its URL. Currently I am just able to get only html of Home Page using WebRequest and WebResponse classes. I have tried another solution using
WebClient Client = new WebClient (); Client.DownloadFile("http://www.techprism.net/Default.aspx", "D:\\Downloader\\Default.aspx");
But here I have to place file with same name on physical location as to be downloaded and I am also unable to download CSS and JS being using on the page. I also want to allow my applicaiton to include built in browser in order to browse downloaded file in offline mode.
Please help me in this regard. Thanks in advance for your kind guidance.
Upvotes: 0
Views: 1372
Reputation: 12253
Doesn't WGet http://www.gnu.org/software/wget/ do everything required. Just put a wrapper around that
I'm sure you can probably do everything with .Net. However I have used WGet with great success for downloading whole websites.
Upvotes: 2