Rolf Schaufelberger wrote:
...

Of course, but what I meant was, can I tell LWP to pass the same referer string I found in my logfile, to simultate exactly that request ?

I'm sure you can. That "referrer" is just a HTTP header ("Referer:" with only one r I think), and LWP allows you to add headers to the request.
lwp-request -h

I doubt this will help you however. If you examine your access log, you probably have lots of such kinds of request, which do not necessarily bring down your server.

Maybe an easier way :
- on one of your servers (suppose it is called "yourserver.yourcompany.com"), create a really long path under the document root and put a html page in it.
Like :
/var/www/htdocs/some/very/long/path/to/a/document/page.html
- in that html page, put a link to your front-end server
- call up that page in a browser, and click on the link.
- then look in your access log

The browser, when you click on the link in the page, sends a request to your front-end server.
In that request, it will add a header :
Referer: http://yourserver.yourcompany.com/some/very/long/path/to/a/document/page.html

That's what you see in the log.

Reply via email to