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

Can't send a POST parameter which has a colon in it #39

Closed
justinedelson opened this issue Mar 23, 2012 · 3 comments · Fixed by #44
Closed

Can't send a POST parameter which has a colon in it #39

justinedelson opened this issue Mar 23, 2012 · 3 comments · Fixed by #44
Labels
enhancement New feature or enhancement

Comments

@justinedelson
Copy link

As far as I know, it's perfectly legal to have a form parameter sent in a POST which has a colon in it, but I don't believe this is possible with httpie.

In other words, there's no way to do the equivalent of
curl -v -Ffoo:bar=baz http://localhost/

@jkbrzt
Copy link
Member

jkbrzt commented Apr 11, 2012

It looks like we need the possibility to escape special characters in field names (e.g., http POST foo\\:bar=baz).

For now, the workaround is to use stdin:

echo -n foo:bar=baz | http -f post httpbin.org/post

@jakebasile
Copy link

I tried to work this out and ended up having a few different ideas for it. The one with the most success so far is able to handle all the normal test cases, and any escaped operator except for parameters with :=. I'll try to get it the rest of the way soon, but if you want to take a look at what I have, it's at my fork.

@jkbrzt
Copy link
Member

jkbrzt commented Apr 24, 2012

Fixed in #44

@jkbrzt jkbrzt closed this as completed Apr 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants