-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cURL snippets fail on Windows due to Single Quote #248
Comments
@umeshp7 the line breaker option is available in the |
This is generated by Postman using cURL but still causes trouble: should be
Notice the removal of the space between -X and POST! Also the data needs double quotes. Here's another example generated by cURL: should be
|
Describe the bug
@umeshp7 @shreys7
#72 #92
this causes a problem on Windows machines; by pasting the cURL generated code snipped into a Windows Command Prompt, you get the misleading error message:
Which is just due to the single quotes, and can be fixed only by using double quotes.
see here: https://stackoverflow.com/questions/6884669/curl-1-protocol-https-not-supported-or-disabled-in-libcurl
Much like you have the option to change the line continuation character from \ to ^ in the Settings there, I think the single vs. double quote should also be an option.
As a bonus, would be nice if Postman detected that the machine is Windows and defaulted to ^ and " in the settings accordingly.
To Reproduce
Paste any resulting cURL snippet into a win cmd prompt
The text was updated successfully, but these errors were encountered: