i'm trying to mode havp to work as a content cache, for some antivirus database.. i can do it using mysql to store filesize, and can test hit by comparing db filesize with disc filesize.. my problem is, im trying to do the hit test with contentlength and disc filesize without sucess, i cant get the file contentlength until had pass the file handle task. Sorry for my english. My question is: How can i get file content length in this part of code:
File: proxyhandle.ccp
line 229
if ( ToServer.SetDomainAndPort( ToBrowser.GetHost(), ToBrowser.GetPort(),ToBrowser.GetRequest() ) == false )
I need to send this part.. and this:
line 248
if ( ToServer.SendHeader( HeaderToServer, DropBrowser, ToBrowser.GetRequest() ) == false )
With the file content length to handle and test hit, when i try to send, i get a large number, and not the right content length
sorry again for my english, i hope anyone can understand i help me!
thanks
|