How to get HTTP POST request body in Beanshell Preprocessor?

By amitmula

enter image description here

I am facing some trouble using jmeter. This is my use case, I am using CSV data source parameters to construct a HTTP POST request, the request body is read from a CSV column

which contains some placeholders like ${source_id}

which I want to replace with jmeter parameters which I am initialising by using a regex/json extractor(from the last PUT request). I tried using the jmeter variable name in the CSV file but the values are not getting substituted. I guess I will have to use the beanshell pre-processor to modify the HTTP POST request body. Can anyone help with the methods I can use to get the HTTP POST request body.

Source: Stack Overflow


Share it with your friends!

    Fatal error: Uncaught Exception: 12: REST API is deprecated for versions v2.1 and higher (12) thrown in /home/content/19/9652219/html/wp-content/plugins/seo-facebook-comments/facebook/base_facebook.php on line 1273