You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
Activity
Fix httpie#1665: Handle long strings with spaces from CLI
sarahgh8 commentedon Jun 11, 2026
I ran
http --print=B POST api.url.com field_name="Foo Bar"on:WSL latest version.
Latest version of HTTPie.
Current result: