Instead of
Referrer: http://somewhere
use
Referrer: ${variable}
and set the variable e.g. using CSV Dataset
If you use that to set the referrer, you could also set another
variable at the same time with the request parameter details.
See the functions documentation in the manual
S.
On 13/03/07, Ramesh Jaganathan <[EMAIL PROTECTED]> wrote:
Yes, I am setting the referrer in a HeaderManager. I am not sure how to set
it from a variable. Could you please give me an example?
Thanks,
Ramesh
On 3/13/07, sebb <[EMAIL PROTECTED]> wrote:
>
> 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]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]