{"action":"created","issue":{"url":"https://api.github.com/repos/jkbrzt/httpie/issues/489","repository_url":"https://api.github.com/repos/jkbrzt/httpie","labels_url":"https://api.github.com/repos/jkbrzt/httpie/issues/489/labels{/name}","comments_url":"https://api.github.com/repos/jkbrzt/httpie/issues/489/comments","events_url":"https://api.github.com/repos/jkbrzt/httpie/issues/489/events","html_url":"https://github.com/jkbrzt/httpie/issues/489","id":165208026,"number":489,"title":"Support request body in binary format","user":{"login":"tinhtruong","id":39238,"avatar_url":"https://avatars.githubusercontent.com/u/39238?v=3","gravatar_id":"","url":"https://api.github.com/users/tinhtruong","html_url":"https://github.com/tinhtruong","followers_url":"https://api.github.com/users/tinhtruong/followers","following_url":"https://api.github.com/users/tinhtruong/following{/other_user}","gists_url":"https://api.github.com/users/tinhtruong/gists{/gist_id}","starred_url":"https://api.github.com/users/tinhtruong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinhtruong/subscriptions","organizations_url":"https://api.github.com/users/tinhtruong/orgs","repos_url":"https://api.github.com/users/tinhtruong/repos","events_url":"https://api.github.com/users/tinhtruong/events{/privacy}","received_events_url":"https://api.github.com/users/tinhtruong/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-12T23:59:32Z","updated_at":"2016-09-06T10:18:51Z","closed_at":"2016-09-06T10:18:51Z","body":"I am testing an Internet Printing Protocol server implementation and there is no way to submit the request body in binary format with 'Content-Type:application/ipp'\r\nHTTPie only support file upload which will set the Content-Type to multipart/form-data.\r\nI have to use curl for now. The command line in curl is as following:\r\n`curl -v --request POST --data-binary \"@ValidateJobRequest.bin\" --header \"Content-Type:application/ipp\" --header \"Expect:100-continue\" http://localhost:10000/ipp`"},"comment":{"url":"https://api.github.com/repos/jkbrzt/httpie/issues/comments/244909396","html_url":"https://github.com/jkbrzt/httpie/issues/489#issuecomment-244909396","issue_url":"https://api.github.com/repos/jkbrzt/httpie/issues/489","id":244909396,"user":{"login":"jkbrzt","id":326885,"avatar_url":"https://avatars.githubusercontent.com/u/326885?v=3","gravatar_id":"","url":"https://api.github.com/users/jkbrzt","html_url":"https://github.com/jkbrzt","followers_url":"https://api.github.com/users/jkbrzt/followers","following_url":"https://api.github.com/users/jkbrzt/following{/other_user}","gists_url":"https://api.github.com/users/jkbrzt/gists{/gist_id}","starred_url":"https://api.github.com/users/jkbrzt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkbrzt/subscriptions","organizations_url":"https://api.github.com/users/jkbrzt/orgs","repos_url":"https://api.github.com/users/jkbrzt/repos","events_url":"https://api.github.com/users/jkbrzt/events{/privacy}","received_events_url":"https://api.github.com/users/jkbrzt/received_events","type":"User","site_admin":false},"created_at":"2016-09-06T10:18:51Z","updated_at":"2016-09-06T10:18:51Z","body":"> A universal method for passing request data is through redirected stdin (standard input). Such data is buffered and then with no further processing used as the request body. \r\n> — https://github.com/jkbrzt/httpie#redirected-input\r\n\r\nThis is the HTTPie equivalent of the command above:\r\n\r\n```bash\r\nhttp -v :10000/ipp Content-Type:application/ipp Expect:100-continue  < ValidateJobRequest.bin\r\n```"}}
{"actor":{"display_login":"jkbrzt"}}