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

How does one upload a picture using httpie ? #348

Closed
allan-simon opened this issue May 4, 2015 · 1 comment
Closed

How does one upload a picture using httpie ? #348

allan-simon opened this issue May 4, 2015 · 1 comment

Comments

@allan-simon
Copy link

the example in the doc only use a txt file, but if you try with a binary format (an image for example it complains )

http --form POST localhost:7777 avatar=@valid_avatar.jpg
@jkbrzt
Copy link
Member

jkbrzt commented May 4, 2015

Form file fields use @ as the key-value separator (=@ is for embedding of the contents of text and JSON files):

$ http --form :7777 avatar@valid_avatar.jpg

Docs:

@jkbrzt jkbrzt closed this as completed May 4, 2015
@jkbrzt jkbrzt added the question label May 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants