Go4Expert (http://www.go4expert.com/)
-   ASP.NET (http://www.go4expert.com/forums/asp-net/)
-   -   unable to download http file (http://www.go4expert.com/forums/unable-download-http-file-t5934/)

studentintau 19Aug2007 22:36

unable to download http file
I would thank you if you help me with the next subject:

I tried to download http file to c drive, but it did not work.

Here is the code I wrote :

using System;
using System.Collections.Generic;
using System.Text;
using System.Net;

namespace t2
    class Program
        static void Main(string[] args)
            WebRequestMethods.File.DownloadFile("http://www.eng.tau.ac.il/students/forms/t4.pdf", "c:");

pradeep 20Aug2007 10:28

Re: unable to download http file
Please read the documentation properly, it says that WebRequestMethods.File.DownloadFile doesn't have a 2nd parameter!

All times are GMT +5.5. The time now is 06:14.