Skip to content
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

Header with special character "]" will be missing when import as CURL #11888

Closed
1 task done
coolalexhuang opened this issue Apr 3, 2023 · 2 comments
Closed
1 task done

Comments

@coolalexhuang
Copy link

Is there an existing issue for this?

  • I have searched the tracker for existing similar issues and I know that duplicates will be closed

Describe the Issue

When I import the CURL to postman, the header with value of "]" will be missing.

Steps To Reproduce

  1. Import below CURL to postman:
    curl -X GET "https://alextest.com" -H "5f005074: [jKanrLih$!]SooCV5u)aI!pt9"
  2. The character "]" is missing.

Screenshots or Videos

image

Operating System

macOS

Postman Version

10.12.10

Postman Platform

Postman App

User Account Type

Signed In User

Additional Context?

No response

@dhwaneetbhatt
Copy link

dhwaneetbhatt commented Apr 3, 2023

Hey @coolalexhuang, thanks for reporting this issue. We will update this thread when it is fixed.

@aman-v-singh
Copy link

aman-v-singh commented Dec 13, 2023

Hey @coolalexhuang,
This issue is caused because the string has an unescaped $, this needs to be \$.
So, doing something like:-
curl -X GET "https://alextest.com/" -H "5f005074: [jKanrLih\$!]SooCV5u)aI!pt9"
or using single quotes:-
curl -X GET "https://alextest.com/" -H '5f005074: [jKanrLih$!]SooCV5u)aI!pt9'
would solve the problem.

Let me know if this helps.
I am closing this issue for now, if you don't find this solution satisfactory, you can reopen the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants