Q:

Downloading a Zip file from a URL shows the ZIP file as empty when trying to manually extract it

I'm downloading a zip file from a URL and when trying to extract it manually just to check it has come through correctly it shows it's empty and doesn't let me.  
try {
     using (var client = new WebClient())
     {
         client. DownloadFile("url", "C:/1.zip");
     }
} catch(Exception e) {
     Debug. WriteLine(e + "DDDD");
}

Also how would I programmatically extract this so I can go into the contents of the file and extract more things.  What is the simplest way?  

A:

Checked the URL through HTTP Headers in Firefox.  Found this URL was going to some sort of API before giving the zip file.  The URL had parameters passed through as arguments.  
I installed RestSharp then done this:
var client = new RestClient(URL);
var request = new RestRequest("&amp;user=bam&amp;pass=boom", Method. GET);
var queryResult = client. Execute(request);
string zipPath = C:/Temp + zippy.zip";
client. DownloadData(request).SaveAs(zipPath);

