Re: Range requests to/from memory

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 UTC