My understanding is you have to turn off redirects, use a regular
expression extractor on the first response to get the servername you
need, and another regex extractor to get the first redirect page. 

Then you can 'manually' go to the first redirect page using another
sampler. I guess in this sampler, you can set the 'follow redirects'
flag since you have got what you needed from the first page.

Kind regards,
Sonam Chauhan
-- 
Corporate Express Australia Ltd. 
Phone: +61-2-93350725, Email: [EMAIL PROTECTED]
-----Original Message-----
From: Nop Lists [mailto:[EMAIL PROTECTED] 
Sent: Monday, 4 June 2007 6:34 AM
To: jmeter
Subject: How to extract text from one specific response while in "follow
redirect"?

Hello,
a tricky question this time...Hope anyone can help.
For a specific request which involves many redirection I use the "follow
redirects" flag.
It happens that it redirects 2 times so I get 3 responses.
Now I Must extract some text (a server name) from the FIRST of these
responses.
How can this be done?
My understanding is that the post-processing extractor operates  on the
last
(third in this case) of the responses.

Any hint?

Further explanation:
what I test is a process which involves SSO calls.
A workflow is taken place on a first server. That some redirection
notifies
the client the address of the next server. This happend in the first of
the
3 responses I mentioned above.
Now the next request goes to this second server, which I can NOT know
beforehabd (statically)...

Any help will be appreciated!
Nop

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to