return file hadle to file in cache?

hello..

i'm trying to write some code that will return a file handle to a cached
file, but not having much luck

right now i'm doing something like...

HTProfile_newPreemptiveClient("MyClient", "0.001");
HTCacheInit(CacheLoc, CacheSize);
request = HTRequest_new();
filename=tmpnam(NULL);
ret=HTLoadToFile(url, request, filename);
// do something with filename
HTRequest_delete(request);

this ends up loading a file from either across the network or from cache
and placing it into
/var/tmp/something.  this works but its not really what i want.  i would
like to load a file across
the network and place it into cache if its not already in cache and then
get a filehandle to 
the cached file to pass back to somewhere.  is there some API functionality
to accomplish this?

thanks!


--
Matt Bohnsack                        Engineering Animation, Inc.
bohnsack@eai.com             http://www.eai.com
515.296.0964

Received on Thursday, 11 June 1998 14:25:43 UTC