Your question may already have an answer on the community forum. Please search for related topics, and then read through the
guidelines
before creating a new topic.
Here’s an outline with best practices for making your inquiry.
My question
:
Getting “Error while importing Curl: Please check your cURL string for malformed URL” when trying to paste as raw text by copying as cURL
Details (like screenshots)
:
How I found the problem
:
While copy paste curl (v9.25.1)
I’ve already tried
:
Steps i tried to perform is
intercept api call from any browser->Right click on api call->copy as cURL->Go to postman(Version 9.25.1)->Import->paste as raw text
Find below cuRL which im trying to import
Thanks will try this.Cannot see the option that you mentioned. May have to update chrome but I can see a copy as cURL in both firefox and chrome.
FYI I’m trying to postmanbug2801×553 267 KB
copy as cURL. Find SS below
Hmmm, interesting.
Maybe try the link above.
Paste on the left and change the option on the right to curl/bash… see if it gives you a different output. (Also I copied the curl conversion I did of your request above, try that too).
(I don’t know much about curl, this is just what works for me).
image1717×734 57.3 KB
Not sure what broke this feature, though, it did used to work when copying the cURL command in chrome?
At least for the time-being converting to bash cURL does resolve this issue as a workaround. Ideally, this should be incorporated into the app without the need to use a third-party.
Thanks for everyones help!
User suggested Solutions require an extra step between copying from Chrome to pasting in postman, which is a bad user experience.
The whole point with using postman is to make it an easy experience.
Same curl snippet when pasted in the terminal - works as expected -
So it doesn’t seem like a problem in Chrome.
BTW for me chrome only supports copy as curl -
Attaching a screenshot