title: Extracting values that appear in URLs after a post in JMeter
body: <p>I have an app that I am trying to load test with JMeter, and I am unable to extract a value from an URL, that is generated after HTTP POST. </p>
  
  <p>The app flow (simplified) goes something like this, with corresponding URLs:</p>
  
  <ol>
  <li>Login: <code>http://host:port/login</code></li>
  <li>Go to Dashboard (HTTP GET): <code>http://host:port/dashboard</code></li>
  <li>Click "Create Content" (HTTP GET): <code>http://host:port/$string1/$string2=/create</code></li>
  <li>Enter data, click "Submit" (HTTP POST) now URL is: <code>http://host:port/$string1/$string2=/content/$string3</code></li>
  </ol>
  
  <p><code>$string1</code>, <code>$string2</code> &amp; <code>$string3</code> are randomly generated; <code>$string1</code> &amp;  <code>$string2</code> are available in the body at the dashboard URL (which are easily extracted using regex); <code>$string3</code> however is returned <em>after</em> content is created. I need <code>$string3</code> at Step 4 above to view the newly created content, and proceed with next steps in my script.</p>
  
  <p>I don't have access to the internals of the app or the server it is on.</p>
  
  <p>Sanity check:</p>
  
  <ul>
  <li>Is this a chicken-egg situation?</li>
  <li>Or am I missing something in JMeter?</li>
  <li>Any way around this problem? </li>
  </ul>