W3C home > Mailing lists > Public > www-lib@w3.org > October to December 1998

Re: Range requests to/from memory

From: Henrik Frystyk Nielsen <frystyk@w3.org>
Date: Tue, 15 Dec 1998 20:16:00 -0500
To: www-lib@w3.org
Message-ID: <367709D0.6F537CC6@w3.org>
To: Jim_Ravan@avid.com


Jim_Ravan@avid.com wrote:
> 
> I need to do range GETs and PUTs to/from memory. For example, someone asks
> me to read bytes 300-500 of "http://www.abc.com/xyz.xml" to buffer foo.
> After they modify the buffer, they will then ask me to write the buffer
> back to the XML document. Range requests don't seem to work when added to a
> request that is then processed by HTLoadAnchorToChunk(). Am I just going
> something wrong?

Have you looked at

	http://www.w3.org/Library/Examples/range.c

linked from

	http://www.w3.org/Library/Examples/
 
> I haven't yet tried the PUT side using HTPutAbsolute(), but I will if I can
> get the GET working.

Remember to set the new length so that libwww knows how many bytes to
PUT.

Henrik
Received on Tuesday, 15 December 1998 20:16:02 EST

This archive was generated by hypermail pre-2.1.9 : Wednesday, 3 September 2003 17:59:24 EDT