title: Not able to login due to '__RequestVerificationToken'
body: <p>I have recorded ‘Login’ in jmeter.
  My Application uses ‘CSRF’ token.</p>
  <p>So I added regular expression extractor as in the screen shot.</p>
  <p>I have tried different types of patterns:</p>
  <blockquote>
  <p>&quot;&lt;input name=&quot;__RequestVerificationToken&quot; type=&quot;hidden&quot; value=&quot;([A-Za-z0-9+=/-_]+)&quot;&gt;&quot;</p>
  <p>&quot;&lt;input name=&quot;__RequestVerificationToken&quot; type=&quot;hidden&quot; value=&quot;(.+?)&quot; /&gt;&quot;. etc</p>
  </blockquote>
  <p>But, When I check the response it is like ‘__RequestVerificationToken=%24%7Btoken%7D’</p>
  <p>I tried with Xpath extractor also:</p>
  <blockquote>
  <p>‘//input[@name='__RequestVerificationToken']/@value’</p>
  </blockquote>
  <p>I also added cookie manager</p>
  <p>! <a href="https://i.stack.imgur.com/FGlPn.jpg" rel="nofollow noreferrer">enter image description here</a></p>
  <p>! <a href="https://i.stack.imgur.com/8ZGYh.jpg" rel="nofollow noreferrer">enter image description here</a></p>
  <p>! <a href="https://i.stack.imgur.com/FtroP.jpg" rel="nofollow noreferrer">enter image description here</a></p>
  <p>Below screenshots are response data(having tokens) for different pages(or paths) before login</p>
  <p>This screenshot is for the path ‘/web’(which has the token)</p>
  <p>! <a href="https://i.stack.imgur.com/veGyd.jpg" rel="nofollow noreferrer">enter image description here</a></p>
  <p>This screenshot is for the path ‘/Web/Account/Login’ (which has different token)</p>
  <p>! <a href="https://i.stack.imgur.com/PlrOr.jpg" rel="nofollow noreferrer">enter image description here</a></p>
  <p>But the login is failing due to authentication</p>
  <p>! <a href="https://i.stack.imgur.com/nvZDz.jpg" rel="nofollow noreferrer">enter image description here</a></p>
  <p>Question :</p>
  <ol>
  <li><p>Am I following the right method</p>
  </li>
  <li><p>Why there are two different token values for two different path (‘/web’ and ‘/Web/Account/Login’)</p>
  </li>
  <li><p>How can I resolve this issue</p>
  </li>
  </ol>
  <p>PS: I have read most of the articles/blogs. Still not able to resolve authentication error</p>