On 27/09/2007, Thang Tran <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a following situation. After a https-request I get this html-code:
>
> <form id="shibboleth"
> action="https://www.identity-provider.de/Shibboleth.sso/SAML/POST";
> method="post">
> <div>
> <input type="hidden" name="TARGET" value="cookie" />
> <input type="hidden" name="SAMLResponse" value="PFJlc3BvbnNlIHhtbG5zP.....

I assume the value may vary, otherwise it's trivial ...

This is what the Regular Expression Post-Processor is for.

Attach it to the sample, and it will extract the data and store it in
a variable that you can use in the form POST parameters.

In your case, you could try the RE:

name="SAMLResponse"\s+value="([^"]+)"

with template: $1$

The part of the RE in () matches any number of characters that are not
a double-quote, and the () causes that part to be stored.

> <input type="submit" value="Continue" />
>
> Since jmeter doesn't support java script I have to create a new request
> where I send the variables (TARGET, SAMLResponse) with their values. How
> can I filter out the value of the variable "SAMLResponse" in order to use
> it for creating a new request?
>
> Hope someone can help me.
>
> best regards,
> Thang
>
> ---------------------------------------------------------------------
> 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]

Reply via email to