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)
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
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).
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.
Alternatively, you could try putting it through the Postman Interceptor (Proxy recorder) … essentially it does the same thing as chrome dev tools but inside Postman … Could be worth a look.
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
I’m experiencing this issue as well. Manually editing the cURL following this comment works, but it’s quite tedious having to do this for many requests.