1

I am trying to use a RegEx Extractor in a get HTTP request for a login page with Users, Passwords and Verification tokens. The tokens are my problem.

I am using this in my Regular Expression Extractor:

<input type="hidden" name="__RequestVerificationToken" value="()" > 

I want to use the value on a post I have created the parameter as this in the login ${__RequestVerificationToken} & a UDV in the get with name __Requestverificationtoken and value ${setProperty}.

None of this is working.
What am I missing?

4
  • Your question is not clear, could you clarify what you receive, what regexp you use and show examples ? May 6, 2013 at 15:59
  • 1
    Any news on this , you should accept answer if it was helpful May 8, 2013 at 5:36
  • PMD I am using the below but it does not work I receive this message: __RequestVerificationToken=%24%7B__RequestVerificationToken%7D& May 8, 2013 at 19:51
  • Show what the response that is supposed to contain RequestVerificationToken contains, and show also where you put your regular expression extractor , thanks May 8, 2013 at 20:29

1 Answer 1

3

You regexp syntax is wrong.

If for example your page contains this:

You can extract it with this:

enter image description here

You can use it with:

${RequestVerificationToken}

1
  • This worked for me. It should be accepted as the answer. Mar 7, 2015 at 0:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.