I don't think that is at all easy; the headers are not built until the sample is sent, by which time it is too late.
However, assuming that you are setting the referrer in a Header Manager, you could try setting that from a variable, and you can easily access variables from On 13/03/07, Ramesh Jaganathan <[EMAIL PROTECTED]> wrote:
Hi, I am able to get to the request data from a beanshell listener using sampleResult methods (getSamplerData() and getRequestHeaders()). How do I access the same request data prior to the request sent to the server? Basically I want to get the referer from the request header and assign a value for one of the request parameter depending on the referer. Which class and methods I can use to get to the request data before the request is sent to server? (May be from a beanshell function or preprocessor etc.,). Thanks, Ramesh
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

