Live data from Hacker News

HTTPie is a command line HTTP client, a user-friendly cURL replacement

httpie.org

51–60 of 79 posts

Re: HTTPie is a command line HTTP client, a user-friendly cURL replacement

#52

Earlier quoted context omitted.

I haven't looked at any code, but I would strongly suspect that it's because either HTTPie or python-requests is using a plain dictionary instead of an ordered dictionary under the hood.

That would appear to be a bug to me. When you want to see the headers of such a transaction you want to see them in the order in which they left the server. I checked the server and it looks like CURL has it right. Colorizing is one thing, reordering is quite another, debugging tools should show the situation with as much fidelity as possible.

Should body chunks when using chunked encoding have their headers spread throughout the body, to have as much fidelity as possible?

Or would you like the body to always appear whole regardless of transfer type?

Re: HTTPie is a command line HTTP client, a user-friendly cURL replacement

#53
post #24

This is one of the little known gems I recommend often. the readability difference is just amazing for me. On that note for those of us having to use Windows at the workplace there are a few things that make life easier: 1) Chocolatey (package manager) 2) HTTPie 3) ConEmu (Shell) 4) gow (Unix command line utilities in Windows) 5) WinMerge (win diff) 6) TortiseSVN 7) SourceTree (git) Makes day to day stuff much smooth…

I've got a couple other utils I'd add to a list like this: - kitty (ssh client, fork of putty) - visualwget (wget gui) - dsynchronize (dir sync)

Another great SSH client is SmarTTY.

Re: HTTPie is a command line HTTP client, a user-friendly cURL replacement

#55

This is one of the little known gems I recommend often. the readability difference is just amazing for me. On that note for those of us having to use Windows at the workplace there are a few things that make life easier: 1) Chocolatey (package manager) 2) HTTPie 3) ConEmu (Shell) 4) gow (Unix command line utilities in Windows) 5) WinMerge (win diff) 6) TortiseSVN 7) SourceTree (git) Makes day to day stuff much smooth…

Git Extensions for git are very nice too

Re: HTTPie is a command line HTTP client, a user-friendly cURL replacement

#58
post #45

Earlier quoted context omitted.

Requests does use an ordered dictionary for handling headers.

Requests might but that's irrelevant. Requests is built on top of urllib3 which is built on top of httplib which does use a plain dict. Also the relevant RFC says order is irrelevant.

Debugging starts with having an accurate representation of what is going on.

Re: HTTPie is a command line HTTP client, a user-friendly cURL replacement

#59
post #45

Earlier quoted context omitted.

Requests might but that's irrelevant. Requests is built on top of urllib3 which is built on top of httplib which does use a plain dict. Also the relevant RFC says order is irrelevant.

Debugging starts with having an accurate representation of what is going on.

Ok, so this tool is only for all the situations in which you don't care about header order.

Re: HTTPie is a command line HTTP client, a user-friendly cURL replacement

#60
post #33

This is one of the little known gems I recommend often. the readability difference is just amazing for me. On that note for those of us having to use Windows at the workplace there are a few things that make life easier: 1) Chocolatey (package manager) 2) HTTPie 3) ConEmu (Shell) 4) gow (Unix command line utilities in Windows) 5) WinMerge (win diff) 6) TortiseSVN 7) SourceTree (git) Makes day to day stuff much smooth…

I have moved away from windows and miss Fiddler the most. It's ability to record, filter, edit and replay requests made debugging a breeze.

Charles Web Proxy? Not free, but I've been using it very reliably on all platforms for at least 3 years now. :) A nicely polished bit of software. Free 30 min "trial mode" and no-cost upgrades, if it helps. Otherwise I've also used mitmproxy, or for some things, the Net panel of Chrome Dev Tools.
Post reply on HN