How to download multiple files in the same url?

I've try t use HttpWebRequest and HttpWebResponse to download files,but the problem is the connection speed of the network.This is my example

Assume that i have 100 files name A1,A2,A3..A100 in the same url folder http://www.myweb.com/data/
when i try to download these file i must connect to
http://www.myweb.com/data/A1
http://www.myweb.com/data/A2
.
.
.
So it has 100 connections!!!.
It's not make sense why i have to open 100 connections to download file in the same url.

Could i make just 1 connection to http://www.myweb.com/data , start download 100 files and then quit the connection? if so,how?

Thank =)

[697 byte] By [Aonz] at [2008-1-9]
# 1

That's not how HTTP works. Each GET request access one resource. There's actually no concept of folders at all.

Note that you're confusing connections with requests. If you can establish a persistent connection to the server, all you'll ever need is one TCP connection (yet still 100 requests).

If you want to bundle those files to be transmitted within one request/response pair, you need a server side application that somehow merges these files, e.g. by zipping them.

JörgJooss-MSFT at 2007-10-3 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...

.NET Development

Site Classified