A
And80
Hi all,
I am doing a small proxy using the WEBrick::HTTPProxyServer class and
I would like to capture the
referer of each HTTP request. Specifically, I need it in order to keep
trace of the html page linking to other in-line meda
(such as gif,png,etc...).
this is my stub code for the proxy looks like:
#from http://www.webrick.org/#example
require 'webrick/httpproxy'
s = WEBrick::HTTPProxyServer.new(
ort => 2200,
roxyContentHandler => Proc.new{|req,res|
#request handling here
}
)
trap("INT"){ s.shutdown }
s.start
I am doing a small proxy using the WEBrick::HTTPProxyServer class and
I would like to capture the
referer of each HTTP request. Specifically, I need it in order to keep
trace of the html page linking to other in-line meda
(such as gif,png,etc...).
this is my stub code for the proxy looks like:
#from http://www.webrick.org/#example
require 'webrick/httpproxy'
s = WEBrick::HTTPProxyServer.new(
ort => 2200,
roxyContentHandler => Proc.new{|req,res|
#request handling here
}
)
trap("INT"){ s.shutdown }
s.start