I want to do a load test my Heroku application using Jmeter. To access the functionality of the application, I need to login through Facebook first. I tried with browser record
Problem is not with Regular Expression Extractor as mentioned by Saswat Sahoo. Main problem is Location header not even getting in Response header of Jmeter. We can see Location header in Browser's response header. Few information are missing in Jmeter Response Header compared to Browser's response header.
I don't know the JMeter context, but the regex can be something like:
\?code=(.*)
You might need to double the backslash. The $ can be problematic if the header is checked as a whole, you can replace it with \n perhaps.
[EDIT] I found the tester pointed from the JMeter page and used it against the header content you gave. Apparently the $ was not necessary, the search is stopping on a line bound. Still not sure about doubling the backslash. Experiment.