Coder Social home page Coder Social logo

Comments (5)

sastava007 avatar sastava007 commented on August 28, 2024

@forenheith Let me look into this!

from postman-code-generators.

umeshp7 avatar umeshp7 commented on August 28, 2024

@forenheith
Please don't add your API-Key and Auth tokens in on the public issues. I have removed it from the comment and request you to please rotate all of your API keys and other Authentication tokens.

Also, we'll need more details about this. Can you please provide us with the following information:

Postman App version:
code generators version (if known):
Code Generators setting in App:
[Click on the Wrench Icon (Top right) > Settings > General > 'New Code Generation Mode' (Can you tell us if this is switched on or not?)]
If the above setting is OFF, please turn it on and try to generate the cURL code again and let us know if you still face the same issue.

Finally, can you share the exact Postman Request and the cURL code generated here? (Remove all sensitive information).

from postman-code-generators.

eugenenekh avatar eugenenekh commented on August 28, 2024

I guess when you say 'Windows Shell' you mean PowerShell.
If that's true, you need to use another delimiter (backtick - `) instead of \ when you split command into several lines.

Guys, it would be great to have backtick (`) as an option for Line continuation character in addition to \ and ^.
Looks like a super easy to do (:

from postman-code-generators.

vJRoF avatar vJRoF commented on August 28, 2024

I hope i can comment my similar situation within this issue.
If i try to export simple post request with body into cURL and import it back into postman i get new request without any body.

I ended up with such request, for example:
curl -X POST 'http://example.com/api/v1/orders' -H 'Content-Type: application/json' --data-raw '{ "entityId":100, "count":1 }'
Postman verison i have is v7.19.1.

from postman-code-generators.

forenheith avatar forenheith commented on August 28, 2024

I can't change the delimiter using the Postman. Also for using PowerShell I should change curl to curl.exe and run this script from the Curl's directory.
Another way that I found is disabling option: Split cUrl command across multiple lines

from postman-code-generators.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.