Hi everyone, I'm toying around with the idea of writing something like a ReferringURLGenerator that will spit out all the referring URLS that Cocoon has seen in it's logs. The only problem is that I can't find any trace of such info being logged in access.log, core.log, sitemap.log, etc. I notice in core.log, the following info is given for a request:
<snip> REQUEST: /cocoon/documents/images/label-background_b.gif CONTEXT PATH: /cocoon SERVLET PATH: /documents/images/label-background_b.gif PATH INFO: null REMOTE HOST: localhost REMOTE ADDRESS: 127.0.0.1 REMOTE USER: null REQUEST SESSION ID: null REQUEST PREFERRED LOCALE: en_US SERVER HOST: localhost SERVER PORT: 8080 METHOD: GET CONTENT LENGTH: -1 PROTOCOL: HTTP/1.1 SCHEME: http AUTH TYPE: null CURRENT ACTIVE REQUESTS: 1 REQUEST PARAMETERS: HEADER PARAMETERS: PARAM: 'host' VALUES: '[localhost:8080]' PARAM: 'user-agent' VALUES: '[Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1]' PARAM: 'accept' VALUES: '[text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=0.1]' PARAM: 'accept-encoding' VALUES: '[gzip, deflate, compress;q=0.9]' PARAM: 'accept-charset' VALUES: '[ISO-8859-1, utf-8;q=0.66, *;q=0.66]' PARAM: 'keep-alive' VALUES: '[300]' PARAM: 'connection' VALUES: '[keep-alive]' PARAM: 'cache-control' VALUES: '[max-age=0]' </snip> So, for a request of "/cocoon/documents/images/label-background_b.gif", the referring URL should be "/cocoon/documents/index.html" .. Am I looking in the right place for referrer info, or am I way off? Tony Tony Collen -- [EMAIL PROTECTED] College of Liberal Arts University of Minnesota, Minneapolis, West Bank --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]