When I use WebClient to download a file, it bypasses the cookies. I need to download files from a site that I am logged in to. When I download the file, it says that I'm not logged in, even though I am. So, I assume that its bypassing the cookies.

How can I force WebClient to use the cookies?