I created an application to download a file from URL.
When I press start it will create one thread to download that file.
OK.
Now I want many thread to download same file in different segments and then merge all downloaded segment to get original file.
How to do that?
Look at page 127: http://www.ietf.org/rfc/rfc2068.txt. You can set the request property as described here: http://download.oracle.com/javase/1.4.2/docs/api/java/net/URLConnection.html#setRequestProperty%28java.lang.String,%20java.lang.String%29