some contents using http metode HEAD then i want create extension replace header from metode HEAD to GET
here some case debug
08.10.12 03:38:14,640 # 499/881 >>> URL: http://down.antivirus.co.id/base/update.dat
noReqDo:
HEAD http://down.antivirus.co.id/base/update.dat HTTP/1.1
Host: down.antivirus.co.id
Accept: text/html, */*
Accept-Encoding: identity
User-Agent: Mozilla/3.0 (compatible; Indy Library)
i succes using this extension
@event RequestHeaderReceived/Request
</HCExtension> ]]
function Request()
hc.request_header = re.replace(hc.request_header, [[^HEAD]], 'GET')
end
but the problem is i want to skip replace header HEAD to GET if file are already in dir cache
how to created rule exception if file is already in dir cache?
thank's
sorry for my bad english