-
Notifications
You must be signed in to change notification settings - Fork 855
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 importer cannot handle caret (^) used as an escape character #5182
Comments
Has an answer been found yet? |
One of our dojo members found this workaround: |
Same issue for following Curl: curl -X POST \ |
@JP-from-Postman The curl command in your 2nd message isn't complete. @vdespa @Cakarena The issue seems to be that |
@vdespa This request seems to send the body to the server as-is (which is different from the server response w/o the carets:
vs
What is the intended raw HTTP request from the first snippet? |
@abhijitkane I have only the respective curl with carets. I would expect the body not to contain any carets. Does that help? |
This problem occurs when you copy the cURL from your browser. in Chrome, you should select "copy as cURL (bash)". for postman you have to select the bash version of your request. If you want to paste in your cmd you should select "copy as cURL (cmd)". |
"copy as cURL (bash)". removes all the carets (^) and the request is imported without any errors |
same isssue both cURL (bash) and cURL (cmd) dont works. |
@hkaur008 make sure you have the latest Postman version. |
This has been fixed in Postman v10.10. :D |
Describe the bug
For some requests, copying the cURL request from Chrome and trying to import it in Postman does not work.
To Reproduce
Steps to reproduce the behavior:
curl "https://trello.com/1/cards" --data-binary "^{^\^"name^\^":^\^"hello world^\^",^\^"pos^\^":65535,^\^"closed^\^":false,^\^"idLabels^\^":^[^],^\^"idMembers^\^":^[^],^\^"dateLastActivity^\^":1536871503239,^\^"idBoard^\^":^\^"5a84a94fc77d9f99cf9ecd8a^\^",^\^"idList^\^":^\^"a^\^",^\^"token^\^":^\^"a/L8nmd9rC5gyBYaBx6RVXGjHuMIRfMQS4b3p3zIhKWin8ejxTzJ5E5ERACxT2IILp^\^"^}" --compressed
The following error is displayed:
Error while importing Curl: 2 option-less arguments found. Only one is supported (the URL)
Expected behavior
Request was imported
App information (please complete the following information):
The text was updated successfully, but these errors were encountered: