Skip to content

cURL snippets fail on Windows due to Single Quote #248

@mzhukovs

Description

@mzhukovs

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:

curl: (1) Protocol "'https" not supported or disabled in libcurl

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions