postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.84k stars 839 forks source link

Curl imports with --data-row will not import the body #7983

Closed ptolemys closed 4 years ago

ptolemys commented 4 years ago

Curl imports with --data-row will not import the body

To Reproduce

  1. Go to 'Import > Paste Raw Text'

  2. Paste a sample curl which contains body specified with --data-row, for example :

    curl --location --request POST 'https://postman-echo.com/post' \ --data-raw 'This is expected to be sent back as part of response body.'

  3. Click on 'Import'

  4. Check that body has not been imported.

Expected behavior Curls with body specified using --data-row should get completely imported including body.

Screenshots 25 seconds screen recording : https://imgur.com/a/X2zMqRh

App information

Additional context On exporting a curl using Code > cURL (from drop down), the default export gets -d body but if Settings > General > New Code Generation Mode is turned ON, the body exports are done with --data-row body which are not back-importable to Postman itself.

ptolemys commented 4 years ago

@shamasis Can someone in Team Postman have a look on this, I would be happy to assist in case help is required for replication.

Thank you.

tiaraju commented 4 years ago

That's also happening to me. For quite a long time actually. Any news?

tiaraju commented 4 years ago

Also reported in #7895

shreys7 commented 4 years ago

@ptolemys Thanks for reporting this issue. We are soon going to release a fix for this. Will keep you updated here.

umeshp7 commented 4 years ago

Duplicate of: https://github.com/postmanlabs/postman-app-support/issues/7895

JaswantBB commented 3 years ago

Again facing same issue

kasumiru commented 3 years ago

the bug is stiil here in chrome Version 88.0.4324.190 (Official Build) (64-bit)

umeshp7 commented 3 years ago

Hey @kasumiru! Are you using the Chrome App? We have actually deprecated the Chrome app version of Postman. Although we have recently launched Postman on the Web - Here you can experience the latest Postman app with all the recent features directly on any web browser.

You can download the latest version of the native Postman apps or try out the Web version here: https://www.postman.com/downloads

Do try this out in one of the latest apps and let us know if you are still facing this.

umeshp7 commented 3 years ago

Hey @JaswantBB, I tried this on the latest version and I couldn't reproduce this. Could you share your Postman App version?