Visual COBOL web development - how to download a file from a website

[Migrated content. Thread originally posted on 28 January 2012]

Can anyone please give the syntax to download a file from a web server to the client PC.

I believe the code in C# would be:
WebClient Client = new WebClient ();
Client.DownloadFile("", " index.aspx");
WebClient Client = new WebClient ();
Stream strm = Client.OpenRead ("");

Thanks - I am new to Visual COBOL, and Object programming, so am struggling with "translating" C# to COBOL.