R
Ray Mitchell
Hello,
I'm trying to download a binary ZIP file using HTTP. Following an example
in MSDN and other sources, my code is:
WebClient client = new WebClient();
client.DownloadFile"http://www.website.com/BinaryFile.zip", "BinaryFile.zip");
Using FTP I can download the file fine, but HTTP downloads something else,
which is not what is in my file. Instead its content is something like the
following. It looks to me like some sort of status information is being
downloaded instead of the actual file:
<html>
<head>
<title>website.com: The Leading Storage Archive Site on the Net</title>
</head>
<frameset cols="1,*" border=0>
<frame name="top"
src="t.php?uid=ws1048efc603a93ed3.10806440&src=&cat=computers%2Finternet%2Fdownloads&kw=Storage+Archive&sc=storage+media"
scrolling=no frameborder=0 noresize framespacing=0 marginwidth=0
marginheight=0>
<frame src="search.php?uid=ws1048efc603a93ed3.10806440&src="
scrolling="auto" framespacing=0 marginwidth=0 marginheight=0 noresize>
</frameset>
<noframes>
This page requires frames.
</noframes>
</html>
I'm trying to download a binary ZIP file using HTTP. Following an example
in MSDN and other sources, my code is:
WebClient client = new WebClient();
client.DownloadFile"http://www.website.com/BinaryFile.zip", "BinaryFile.zip");
Using FTP I can download the file fine, but HTTP downloads something else,
which is not what is in my file. Instead its content is something like the
following. It looks to me like some sort of status information is being
downloaded instead of the actual file:
<html>
<head>
<title>website.com: The Leading Storage Archive Site on the Net</title>
</head>
<frameset cols="1,*" border=0>
<frame name="top"
src="t.php?uid=ws1048efc603a93ed3.10806440&src=&cat=computers%2Finternet%2Fdownloads&kw=Storage+Archive&sc=storage+media"
scrolling=no frameborder=0 noresize framespacing=0 marginwidth=0
marginheight=0>
<frame src="search.php?uid=ws1048efc603a93ed3.10806440&src="
scrolling="auto" framespacing=0 marginwidth=0 marginheight=0 noresize>
</frameset>
<noframes>
This page requires frames.
</noframes>
</html>