Detect Content-Type of stdin via file util / "magic" heuristics #175

jbyler opened this Issue Oct 24, 2013 · 1 comment


None yet

2 participants

jbyler commented Oct 24, 2013

When setting the body of a request via piped input (stdin), it would be nice to still auto-detect the Content-Type, using pymagic or python-magic or similar.

jkbrzt commented Sep 10, 2014

I'd love to see this feature in HTTPie but the problem is the additional dependencies.

In addition to introducing dependency on python-magic (which seems to be the better one), there are further dependencies that python-magic needs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment