https://bz.apache.org/bugzilla/show_bug.cgi?id=64446

            Bug ID: 64446
           Summary: cURL code generated for Post/Put requests from Postman
                    is not imported correctly.
           Product: JMeter
           Version: 5.2.1
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: JMETER_5.3.0

Steps to Reproduce :
1. Refer the site - https://restful-booker.herokuapp.com/apidoc/index.html
2. Copy the "Auth - CreateToken" and import into Postman (refer link -
https://stackoverflow.com/questions/27957943/simulate-a-specific-curl-in-postman)
3. Click on 'Code' option in postman and copy the cURL code for the above
request. Sample as below - 
curl --location --request PUT 'https://restful-booker.herokuapp.com/booking/1'
\
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Cookie: token=e316eaa04180abb' \
--header 'Content-Type: text/plain' \
--data-raw '{
    "firstname" : "James",
    "lastname" : "Brown",
    "totalprice" : 111,
    "depositpaid" : true,
    "bookingdates" : {
        "checkin" : "2018-01-01",
        "checkout" : "2019-01-01"
    },
    "additionalneeds" : "Breakfast"
}'
4. Open JMeter and go to Tools -> Import from cURL.
5. Enter above code snippet into the text area and click on 'Create Test Plan'
button.
6. Observe that : Parameters and headers are not imported correctly.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to