473,503 Members | 1,858 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Downloader

BC
Hi all,

Currently I am working on a project that requires download large size
files. I need to write a simple application that can start, pause, and
restart downloads. Similar to applications like GetRight, where you can
pause your download, and restart the download later (i.e. it will start
the download again from the completed percentage).

I am looking for information on how to implement the restart download
section. Any help will be much appreciated.
Cheers,

Benny

*** Sent via Developersdex http://www.developersdex.com ***
Apr 2 '06 #1
3 2071
Benny,

One option you have is that you can store the file on a server which is
using the HTTP 1.1 protocol (I believe it is 1.1 and not in 1.0). There is
a header that you can send to the server to indicate which byte to start the
download from. All you have to do is send the byte that you want to start
from, and then append to your file from that point on.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"BC" <no****@devdex.com> wrote in message
news:u7**************@TK2MSFTNGP10.phx.gbl...
Hi all,

Currently I am working on a project that requires download large size
files. I need to write a simple application that can start, pause, and
restart downloads. Similar to applications like GetRight, where you can
pause your download, and restart the download later (i.e. it will start
the download again from the completed percentage).

I am looking for information on how to implement the restart download
section. Any help will be much appreciated.
Cheers,

Benny

*** Sent via Developersdex http://www.developersdex.com ***

Apr 2 '06 #2
BC
Hi Nicholas,

Thanks for the help.
One option you have is that you can store the file on a server which is using the HTTP 1.1 protocol.

Is this mean the server require to support HTTP 1.1 protocol in order to
allow restart downloads?
There is a header that you can send to the server to indicate which

byte to start the download from. All you have to do is send the byte
that you want to start
from, and then append to your file from that point on.

Do you have any code examples which I can look at?
Cheers,

Benny

*** Sent via Developersdex http://www.developersdex.com ***
Apr 3 '06 #3
BC,

Check out the HTTP protocol documentation. Specifically, the byte range
header. Here is a link to that documentation (watch for line wrap):

http://www.w3.org/Protocols/rfc2616/...tml#sec14.35.1

You can set the header yourself on an HttpWebRequest instance through
the Headers property on the HttpWebRequest.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"BC" <no****@devdex.com> wrote in message
news:OH**************@TK2MSFTNGP15.phx.gbl...
Hi Nicholas,

Thanks for the help.
One option you have is that you can store the file on a server which is using the HTTP 1.1 protocol.

Is this mean the server require to support HTTP 1.1 protocol in order to
allow restart downloads?
There is a header that you can send to the server to indicate which

byte to start the download from. All you have to do is send the byte
that you want to start
from, and then append to your file from that point on.

Do you have any code examples which I can look at?
Cheers,

Benny

*** Sent via Developersdex http://www.developersdex.com ***

Apr 3 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1854
by: fishboy | last post by:
Howdy, Sorry if this is a double post. First try seemed to go into hyperspace. I'm working on a personal project. It's going to be a multipart binary attachment downloader that will search...
4
3060
by: Kim | last post by:
Random image downloader for specified newsgroup. Hi I'm writing a small script that will download random images from a specified newsgroup. I've imported yenc into the script but I can't open the...
0
1508
by: Kim | last post by:
Random image downloader for specified newsgroup. Hi I'm writing a small script that will download random images from a specified newsgroup. I've imported yenc into the script but I can't open the...
0
903
by: hydroniumf | last post by:
Hi Friends I search a good downloader with high speed that I can add my download URLs list in it via programming in .net. I mean I can control that downloader software via programing (adding list...
4
2143
by: olguyilmaz | last post by:
Hi, I am using the Updater Application Block Version 2. I am trying to follow the instructions at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpa... to build a custom...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7280
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7460
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
380
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.