I am trying to do a JMeter post operation to a simle rails app but I am getting the following back:
Started POST "/flights/" for 127.0.0.1 at 2015-05-04 12:40:15 -0700 Processing by FlightsController#create as HTML Parameters: {"authenticity_token"=>"$(LOGIN_AUTH_TOKEN)"} Can't verify CSRF token authenticity Completed 422 Unprocessable Entity in 3ms (ActiveRecord: 0.0ms)
I have implemented the suggestion about creating a regular expression extractor for the authenticity login as shown here:
and here is the http request:
Any help appreciated and thanks in advance, Slavko
Regular Expression Extractor
as the child element of the first HTTP Request.name=authenticity_token type=hidden value=(.*?)"
${LOGIN_AUTH_TOKEN}
(Not by $(LOGIN_AUTH_TOKEN))If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With