Skip to content

importing curl with escaped chars fails to unescape #8838

@ristiisa

Description

@ristiisa

Expected Behavior

curl --request GET \
  --url 'https://httpbin.org/get?test%5B%5D=1234'
Image
{
  "args": {
    "test[]": "1234"
  },
  "headers": {
    "Accept": "*/*",
    "Host": "httpbin.org",
    "User-Agent": "curl/7.79.1",
    "X-Amzn-Trace-Id": "Root=1-6867fb5a-25c4b52b436ed4605340f19a"
  },
  "origin": "...",
  "url": "https://httpbin.org/get?test[]=1234"
}

Actual Behavior

curl --request GET \
  --url 'https://httpbin.org/get?test%5C%5B%5C%5D=1234'
Image
{
  "args": {
    "test\\[\\]": "1234"
  },
  "headers": {
    "Accept": "*/*",
    "Host": "httpbin.org",
    "X-Amzn-Trace-Id": "Root=1-6867fd27-7ba4493546051ffa02c5ef6b"
  },
  "origin": "...",
  "url": "https://httpbin.org/get?test\\[\\]=1234"
}

Reproduction Steps

paste the following into curl import:

curl 'https://httpbin.org/get?test\[\]=1234'

Is there an existing issue for this?

Which sync method do you use?

  • Git sync.
  • Insomnia Cloud sync.
  • Local only

Additional Information

No response

Insomnia Version

11.2.0

What operating system are you using?

Windows

Operating System Version

Win10

Installation method

homepage

Last Known Working Insomnia version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-bugBug: general classificationS-unverifiedStatus: Unverified by maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions