Comments (5)
@forenheith Let me look into this!
from postman-code-generators.
@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.
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.
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.
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)
- Add support for acv.addFormats
- Code generator library written in dart.
- VBA: Codegen feature for VBA
- Power Query: Codegen support for excel power query.
- cURL is missing methods HOT 1
- unused `fs` import on `NodeJS - Native` Code
- Suggest: changing the package go ioutil was deprecated support <1.16 to new native package io. HOT 2
- Laravel Http Code Snippet Generator HOT 1
- golang : ioutil.ReadAll is deprecated from Go 1.16 HOT 2
- Scala+sttp code snippet generator
- The version of the postman-collection dependency of HTTP-related codegens is too early
- Add python urllib3 support
- Enhance CURL Code generation options
- Why using headers when it is not required in C-libcurl?
- [Security] semver (dependency) vulnerable to Regular Expression Denial of Service
- python.http-client generates code snippet not workable for http protocol
- Delphi Pascal code generator feature HOT 1
- code-snippets generator for M language (microsoft power query)
- Invalid production flags for pnpm
- Failed to run yarn install on codegen csharp-httpclient HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postman-code-generators.