You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by Philippe Mouawad <ph...@gmail.com> on 2013/07/15 07:30:39 UTC

Fwd: JMeter HTTP Request equivalent of "curl -XGET -d"

Hello,
Is this kind if requests conform to the norm ?

Regards
Philippe
---------- Forwarded message ----------
From: *Huang, Roger*
Date: Friday, July 12, 2013
Subject: JMeter HTTP Request equivalent of "curl -XGET -d"
To: JMeter Users List <us...@jmeter.apache.org>


Hi
In JMeter how can I configure "HTTP Request" to make the equivalent of an
HTTP GET and pass in a JSON document with the -d (data) flag?

curl -XGET 'http://localhost:9200/vis/userDemo/_search?pretty=true' -d '{
> "query" : {
> "query_string" : {
> "default_field" : "firstname",
> "query": "Joe~"
> }
> }
> }'

I would also like to make an HTTP POST and pass in a JSON document with
"-d".
Thanks,
R


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org <javascript:;>
For additional commands, e-mail: user-help@jmeter.apache.org <javascript:;>




-- 
Cordialement.
Philippe Mouawad.