HTTPie is a command line HTTP client, a user-friendly cURL replacement
51–60 of 79 posts
Re: HTTPie is a command line HTTP client, a user-friendly cURL replacement
#52Earlier 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.
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
#53This 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)
Re: HTTPie is a command line HTTP client, a user-friendly cURL replacement
#54Re: HTTPie is a command line HTTP client, a user-friendly cURL replacement
#55This 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…
Re: HTTPie is a command line HTTP client, a user-friendly cURL replacement
#56D'oh! HTTPie doesn't support SNI
$ pip install --upgrade pyopenssl pyasn1 ndg-httpsclient
Re: HTTPie is a command line HTTP client, a user-friendly cURL replacement
#57Re: HTTPie is a command line HTTP client, a user-friendly cURL replacement
#58Earlier 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.
Re: HTTPie is a command line HTTP client, a user-friendly cURL replacement
#59Earlier 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.
Re: HTTPie is a command line HTTP client, a user-friendly cURL replacement
#60This 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.