I have a use case where I need to pass a request body in the GET method. I'm able to do this in Postman, but cannot find a way to do this in Runscope. I can't find any resources for adding the json request body.
Release :
Component : BLAZEMETER PERFORMANCE TESTING
You're correct. Runscope allows you to add a raw JSON body to a POST method. However, we do not expose this as a feature for the GET method. You cannot add a raw JSON body to the GET method.
As a general rule, GET methods do not use request bodies. The parameters are passed in the header or URL. For more information, see:
https://dropbox.tech/developers/limitations-of-the-get-method-in-http#:~:text=As%20a%20rule%2C%20HTTP%20GET%20requests%20should%20not%20modify%20server%20state.&text=The%20Dropbox%20API%20tries%20to,URL%20or%20in%20a%20header
Although you can do it technically, it is typically not useful for the GET method to contain a body.
As a workaround, try adding the JSON body as a query string parameter in the header. See the screenshots below.
If you would like to see the ability to add a raw JSON body to the GET method, you will need to submit an Enhancement Request. To submit the request, see https://guide.blazemeter.com/hc/en-us/articles/115005740049-Submitting-Feature-Requests-Ideas-
For more information regarding RFC2616, which governs the Hypertext Transfer Protocol -- HTTP/1.1, see https://datatracker.ietf.org/doc/html/rfc2616