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

Output Redirection on Windows #88

Closed
shawndumas opened this issue Aug 21, 2012 · 2 comments
Closed

Output Redirection on Windows #88

shawndumas opened this issue Aug 21, 2012 · 2 comments
Labels
enhancement New feature or enhancement

Comments

@shawndumas
Copy link

If I try to pipe the output to underscore-cli so I can filter/sort/pluck/map the JSON returned I get the following error:

"Output redirection is not supported on Windows. Please use `--output FILE' instead."

So I use the output switch and feed it a filename then cat the file in the pipeline but I still get the previous error.

Any bash script guys that can help? I would dearly love to be able to run a pipeline with the JSON returned.

@jkbrzt
Copy link
Member

jkbrzt commented Aug 22, 2012

When I was testing output redirection on Windows, there was an issue with Windows doing some processing on the data, which resulted in corruption when the response was binary. I'll investigate the problem a bit more and enable piping (at least for textual data) in the next release of HTTPie. The --output option was just a quick workaround.

@shawndumas
Copy link
Author

lov'it thx

@jkbrzt jkbrzt closed this as completed in a41dd7a Sep 21, 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

No branches or pull requests

2 participants