HTTP Anti-Virus Proxy

Official HAVP Support Forum
Registration disabled, I'm tired of spambots. E-mail havp@hege.li if you have questions.
HAVP project is pretty much frozen/abandoned at this time anyway.


All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: 15 Nov 2010 07:41 
Offline

Joined: 26 Oct 2010 04:44
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group