JMeter, authenticity token has been encoded, how to decode -


my script authenticity token first page, pass second page got error when running test:

{"errors":{"error:":["actioncontroller::invalidauthenticitytoken"]}} 

i checked token variable, apparently string such /, = has been encoded %2f , %3d etc..

on second page's http request window, have not selected "encoded" token variable defined in "send parameters request" section.

apparently problem did not asked encoded variable, jmeter encode it. known bug or should decode or there work around on issue?

did pass token in post data?

i'v faced same problem , pass body data work around, need:

  1. select http sampler
  2. switch "parameter" "body data" tab (you have delete parameters it)
  3. write body data (variable substitution works)

body data example:

username=some_name&token=abracadabra 

nb, if need encoded, you'll have manually.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -