HTTP Anti-Virus Proxy
http://havp.hege.li/forum/

HAVP as Cotent Cache Proxy
http://havp.hege.li/forum/viewtopic.php?f=3&t=562
Page 1 of 1

Author:  napala [ 15 Nov 2010 07:41 ]
Post subject:  HAVP as Cotent Cache Proxy

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

Page 1 of 1 All times are UTC + 2 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/