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

2013-07-14 Thread Philippe Mouawad
Hello,
On what kind of tool do you have this kind of requests?
Is it an inhouse application, some open source or external distributed
software?

Read this on having body in http get:
- http://stackoverflow.com/questions/11091160/rest-api-get-request-with-body

Regards


On Friday, July 12, 2013, Huang, Roger wrote:

> 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-unsubscr...@jmeter.apache.org 
> For additional commands, e-mail: user-h...@jmeter.apache.org
>
>

-- 
Cordialement.
Philippe Mouawad.


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

2013-07-11 Thread Huang, Roger
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-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org