Skip to content

Can't send long string from cli #1665

Open

Description

@d0niek

Checklist

  • I've searched for similar issues.
  • I'm using the latest version of HTTPie.

Minimal reproduction code and steps

  1. Run http --print=B POST api.url.com field_name="Foo Bar"

Current result

usage:
    http [METHOD] URL [REQUEST_ITEM ...]

error:
    argument REQUEST_ITEM: 'Bar' is not a valid value

for more information:
    run 'http --help' or visit https://httpie.io/docs/cli

Expected result

{
    "field_name": "Foo Bar"
}

Activity

  1. added
    bug
    new
    on Sep 29, 2025
  2. moved this from Backlog to In progress in httpie Open Source Projecton Nov 6, 2025
  3. moved this from In progress to In review in httpie Open Source Projecton Nov 6, 2025
  4. added a commit that references this issue on Apr 10, 2026
    b72e4ec
  5. sarahgh8 commented on Jun 11, 2026

    @sarahgh8

    I ran http --print=B POST api.url.com field_name="Foo Bar" on:
    WSL latest version.
    Latest version of HTTPie.

    Current result:

    {
        "field_name": "Foo Bar"
    }
    
    
    
    http: error: gaierror: [Errno -2] Name or service not known
    Couldn’t resolve the given hostname. Please check the URL and try again.
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugnew

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions