1

I want to send a JSON payload with HTTP GET request but I want to prevent it to be viewable in URL.

GET http://<domain>/school/search.json

{ 
    schoolId: ["S1","S2","S3"],
    location: "Pune"
}

How can I achieve this in JMeter Apache?

Aliaksandr Belik
  • 12,725
  • 6
  • 64
  • 90

2 Answers2

0

Get implies visible in Url, what exactly do you want to do ?

  • 1
    I want to execute HTTP Get Restful Web Service with Request Body using JMeter. Is there any way to achieve this in JMeter? – user2764530 Sep 11 '13 at 08:33
0

Sending Body data along with HTTP GET request is available for default (HttpClient4) implementation since ver.3.1 (as Bugzilla #60358), as well as request retrying behavior both for PUT and GET with body fixed since ver.3.2 (as Bugzilla #60837).

Just as additional note: you will likely encounter problems if you have cache/proxies in your setup and if you plan to take advantage from their usage.

Aliaksandr Belik
  • 12,725
  • 6
  • 64
  • 90