Teen Programmers Unite  
 

 

Return to forum top

sockets - how to retrieve on parts?

Posted by yontihy [send private reply] at August 31, 2001, 08:40:58 AM

how can i retrieve a file from a HTTP server on parts? I mean - how to program a client socket(s) to get the file begining from the 1000th byte, not from the begining of the file? is this possible?

10x in advance

Posted by Psion [send private reply] at August 31, 2001, 04:49:00 PM

Just first read 999 bytes and discard the values.

Posted by taubz [send private reply] at August 31, 2001, 10:19:06 PM

I don't recall that being in the HTTP protocol. If it is, you should search for the RFC for HTTP and look up whether there is a header to send that will do that. :) Otherwise.... try FTP.

- taubz

Posted by drdevil [send private reply] at September 01, 2001, 05:54:18 AM

Im 100% certain HTTP allows it, because most websites allow you to resume files, i know recent apache does, i do it all the time.

I cant remember what the header name is tho, soz.

Posted by yontihy [send private reply] at September 11, 2001, 09:23:48 AM

YES! - http1.1 supports it - http://www.faqs.org/rfcs/rfc2616.html

10x people

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.