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.
HTTPie is a command line HTTP client, a user-friendly cURL replacement
31–40 of 79 posts
Re: HTTPie is a command line HTTP client, a user-friendly cURL replacement
#32Re: HTTPie is a command line HTTP client, a user-friendly cURL replacement
#33This 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
#34This 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
#35Re: HTTPie is a command line HTTP client, a user-friendly cURL replacement
#36This 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 been looking forward to having WinMerge on Linux for so long. I haven't found a good alternative on Linux which can do quick side-by-side comparison just by pasting from clipboard.
Re: HTTPie is a command line HTTP client, a user-friendly cURL replacement
#37This 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
#38This 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.
Re: HTTPie is a command line HTTP client, a user-friendly cURL replacement
#39Re: HTTPie is a command line HTTP client, a user-friendly cURL replacement
#40Earlier quoted context omitted.
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.
Requests does use an ordered dictionary for handling headers.