Alex
Alex

Reputation: 7491

How to utilize curl request in JMeter?

I have a curl request and I want to utilize it in JMeter:

curl  -i -X POST -u '[email protected]:a1234' -d "[email protected]" 
-k http://anarinsky.aaa.com/rest/secure/requestOrderMultipleAttr/skuOrderList/AAA_Prod_Go_d2/quantityAdult/1/quantityChild/1/email/[email protected]

What is the best way of doing this?

Upvotes: 2

Views: 3664

Answers (1)

Dmitri T
Dmitri T

Reputation: 168092

To simulate this curl call with JMeter you'll need:

HTTP Request Sampler configured as follows:

  • Server Name or IP: anarinsky.aaa.com
  • Protocol: http
  • Method: POST
  • Path: /rest/secure/requestOrderMultipleAttr/skuOrderList/AAA_Prod_Go_d2/quantityAdult/1/quantityChild/1/email/[email protected]
  • Parameters: Name: email Value: [email protected]

HTTP Authorization Manager as a child of HTTP Request (if you want to use username/password only for this HTTP Request) or at the same level if you intend to use it for all requests in scope.

Upvotes: 6

Related Questions