🥧 HTTPie CLI — modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more.
This report summarizes scanner evidence for httpie/cli, a Python project with 38,758 GitHub stars. SynthScan examined 25,308 lines of code across 186 source files, recording 376 pattern matches distributed across 13 syntactic categories. The legacy adjusted pattern signal is 19.2 (Elevated pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-11-27.
Can maintainers explain intent, assumptions, and trade-offs? 316 finding(s).
Are imports declared and package/API names verified? 32 finding(s).
Are wrappers, guards, and repeated structures necessary? 315 finding(s).
Which changes need focused human review? 376 finding(s).
Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 376 distinct pattern matches across 13 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_httpie.py | 24 | def test_main_entry_point_keyboard_interrupt(main): | CODE |
| LOW | tests/test_httpie.py | 53 | def test_path_dot_normalization(): | CODE |
| LOW | tests/test_httpie.py | 199 | def test_unset_useragent_header(httpbin_both): | CODE |
| LOW⚡ | tests/test_httpie.py | 215 | def test_headers_empty_value_with_value_gives_error(httpbin): | CODE |
| LOW⚡ | tests/test_httpie.py | 225 | def test_headers_multiple_omit(httpbin_both): | CODE |
| LOW⚡ | tests/test_httpie.py | 233 | def test_headers_same_after_omit(httpbin_both): | CODE |
| LOW | tests/test_httpie.py | 245 | def test_headers_multiple_values(httpbin_both): | CODE |
| LOW | tests/test_httpie.py | 250 | def test_headers_multiple_values_repeated(httpbin_both): | CODE |
| LOW⚡ | tests/test_httpie.py | 270 | def test_headers_multiple_values_with_empty(httpbin_both, headers, expected): | CODE |
| LOW⚡ | tests/test_httpie.py | 275 | def test_headers_multiple_values_mixed(httpbin_both): | CODE |
| LOW⚡ | tests/test_httpie.py | 282 | def test_headers_preserve_prepared_headers(httpbin_both): | CODE |
| LOW⚡ | tests/test_httpie.py | 289 | def test_headers_multiple_headers_representation(httpbin_both, pretty): | CODE |
| LOW⚡ | tests/test_httpie.py | 302 | def test_response_headers_multiple(http_server): | CODE |
| LOW⚡ | tests/test_httpie.py | 308 | def test_response_headers_multiple_repeated(http_server): | CODE |
| LOW⚡ | tests/test_httpie.py | 316 | def test_response_headers_multiple_representation(http_server, pretty): | CODE |
| LOW | tests/test_httpie.py | 329 | def test_json_input_preserve_order(httpbin_both): | CODE |
| LOW | tests/test_httpie.py | 355 | def test_options_content_length_preservation(httpbin, extra_args, expected_content_length): | CODE |
| LOW | tests/test_httpie.py | 366 | def test_options_dropping_redundant_content_length(httpbin, method): | CODE |
| LOW | tests/test_cookie.py | 27 | class MockServerRequestHandler(BaseHTTPRequestHandler): | CODE |
| LOW⚡ | tests/conftest.py | 52 | def _httpbin_with_chunked_support_available(): | CODE |
| LOW⚡ | tests/conftest.py | 61 | def httpbin_with_chunked_support(_httpbin_with_chunked_support_available): | CODE |
| LOW⚡ | tests/conftest.py | 68 | def _remote_httpbin_available(): | CODE |
| LOW⚡ | tests/test_redirects.py | 15 | def test_follow_all_redirects_shown(httpbin): | CODE |
| LOW⚡ | tests/test_redirects.py | 23 | def test_follow_without_all_redirects_hidden(httpbin, follow_flag): | CODE |
| LOW⚡ | tests/test_redirects.py | 30 | def test_follow_output_options_used_for_redirects(httpbin): | CODE |
| LOW⚡ | tests/test_redirects.py | 36 | def test_follow_all_output_options_used_for_redirects(httpbin): | CODE |
| LOW | tests/test_redirects.py | 47 | # def test_follow_redirect_output_options(httpbin): | COMMENT |
| LOW | tests/test_redirects.py | 72 | def test_follow_redirect_with_repost(httpbin, status_code): | CODE |
| LOW | tests/test_redirects.py | 91 | def test_verbose_follow_redirect_with_repost(httpbin, status_code): | CODE |
| LOW | tests/test_auth.py | 58 | def test_credentials_in_url_auth_flag_has_priority(httpbin_both): | CODE |
| LOW⚡ | tests/test_auth.py | 72 | def test_only_username_in_url(url): | CODE |
| LOW | tests/test_auth.py | 112 | def test_ignore_netrc_together_with_auth(): | CODE |
| LOW | tests/test_auth.py | 120 | def test_ignore_netrc_with_auth_type_resulting_in_missing_auth(httpbin): | CODE |
| LOW | tests/test_auth.py | 141 | def test_auth_plugin_netrc_parse(auth_type, endpoint, httpbin): | CODE |
| LOW | tests/test_auth.py | 150 | def test_ignore_netrc_null_auth(): | CODE |
| LOW⚡ | tests/test_errors.py | 57 | def test_max_headers_no_limit(httpbin_both): | CODE |
| LOW⚡ | tests/test_errors.py | 61 | def test_response_charset_option_unknown_encoding(httpbin_both): | CODE |
| LOW⚡ | tests/test_errors.py | 70 | def test_response_mime_option_invalid_mime_type(httpbin_both): | CODE |
| LOW | tests/test_sessions.py | 91 | def test_session_created_and_reused(self, httpbin): | CODE |
| LOW | tests/test_sessions.py | 151 | def test_session_overwrite_header(self, httpbin): | CODE |
| LOW | tests/test_sessions.py | 173 | def test_session_ignored_header_prefixes(self, httpbin): | CODE |
| LOW | tests/test_sessions.py | 204 | def test_session_with_cookie_followed_by_another_header(self, httpbin): | CODE |
| LOW | tests/test_sessions.py | 240 | def test_session_default_header_value_overwritten(self, httpbin): | CODE |
| LOW | tests/test_sessions.py | 272 | def test_auth_type_reused_in_session(self, auth_require_param, auth_parse_param, httpbin): | CODE |
| LOW | tests/test_sessions.py | 306 | def test_auth_plugin_prompt_password_in_session(self, httpbin): | CODE |
| LOW | tests/test_sessions.py | 346 | def test_auth_type_stored_in_session_file(self, httpbin): | CODE |
| LOW | tests/test_sessions.py | 379 | def test_removes_expired_cookies_from_session_obj(self, initial_cookie, expired_cookie, httpbin, mock_env): | CODE |
| LOW | tests/test_sessions.py | 397 | def test_get_expired_cookies_using_max_age(self): | CODE |
| LOW | tests/test_sessions.py | 442 | def test_get_expired_cookies_manages_multiple_cookie_headers(self, cookies, now, expected_expired): | CODE |
| LOW | tests/test_sessions.py | 477 | def test_existing_and_new_cookies_sent_in_request( | CODE |
| LOW | tests/test_sessions.py | 531 | def test_cookie_storage_priority(self, cli_cookie, set_cookie, expected, httpbin): | CODE |
| LOW | tests/test_sessions.py | 588 | def test_old_session_version_saved_as_is(basic_session, mock_env): | CODE |
| LOW | tests/test_sessions.py | 596 | def test_old_session_cookie_layout_warning(basic_session, mock_env): | CODE |
| LOW | tests/test_sessions.py | 652 | def test_cookie_security_warnings_on_raw_cookies(basic_session, mock_env, cookies, expect_warning): | CODE |
| LOW | tests/test_sessions.py | 666 | def test_old_session_cookie_layout_loading(basic_session, httpbin, mock_env): | CODE |
| LOW | tests/test_sessions.py | 682 | def test_session_cookie_layout_preservation(basic_session, mock_env, layout_type): | CODE |
| LOW | tests/test_sessions.py | 695 | def test_session_cookie_layout_preservation_on_new_cookies(basic_session, httpbin, mock_env, layout_type): | CODE |
| LOW | tests/test_sessions.py | 730 | def test_headers_old_layout_warning(basic_session, mock_env, headers, expect_warning): | CODE |
| LOW | tests/test_sessions.py | 744 | def test_outdated_layout_mixed(basic_session, mock_env): | CODE |
| LOW | tests/test_sessions.py | 759 | def test_old_session_header_layout_loading(basic_session, httpbin, mock_env): | CODE |
| 223 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/utils/__init__.py | 183 | except Exception: | CODE |
| HIGH | tests/utils/__init__.py | 439 | except Exception: | CODE |
| HIGH | tests/utils/__init__.py | 264 | except ValueError: | CODE |
| HIGH | tests/utils/__init__.py | 270 | except ValueError: | CODE |
| HIGH | httpie/config.py | 74 | except FileNotFoundError: | CODE |
| HIGH | httpie/models.py | 125 | except AttributeError: | CODE |
| HIGH | httpie/downloads.py | 244 | except OSError: | CODE |
| HIGH | httpie/context.py | 78 | except curses.error: | CODE |
| HIGH | httpie/output/utils.py | 16 | except ValueError: | CODE |
| HIGH | httpie/output/formatters/xml.py | 69 | except ExpatError: | CODE |
| HIGH | httpie/output/formatters/xml.py | 71 | except DefusedXmlException: | CODE |
| HIGH | httpie/output/formatters/json.py | 23 | except ValueError: | CODE |
| HIGH | httpie/output/formatters/colors.py | 171 | except ClassNotFound: | CODE |
| HIGH | httpie/output/formatters/colors.py | 184 | except ValueError: | CODE |
| HIGH | httpie/output/formatters/colors.py | 177 | except ClassNotFound: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 7 | CODE | |
| LOW | tests/conftest.py | 14 | CODE | |
| LOW | tests/conftest.py | 14 | CODE | |
| LOW | tests/conftest.py | 14 | CODE | |
| LOW | tests/conftest.py | 14 | CODE | |
| LOW | tests/conftest.py | 14 | CODE | |
| LOW | tests/conftest.py | 14 | CODE | |
| LOW | tests/conftest.py | 22 | CODE | |
| LOW | tests/conftest.py | 22 | CODE | |
| LOW | tests/utils/matching/__init__.py | 10 | CODE | |
| LOW | httpie/compat.py | 21 | CODE | |
| LOW | httpie/plugins/__init__.py | 6 | CODE | |
| LOW | httpie/plugins/__init__.py | 6 | CODE | |
| LOW | httpie/plugins/__init__.py | 6 | CODE | |
| LOW | httpie/plugins/__init__.py | 6 | CODE | |
| LOW | httpie/output/ui/rich_progress.py | 7 | CODE | |
| LOW | httpie/output/formatters/xml.py | 7 | CODE | |
| LOW | httpie/legacy/v3_2_0_session_header_format.py | 4 | CODE | |
| LOW | httpie/legacy/v3_1_0_session_cookie_format.py | 5 | CODE | |
| LOW | httpie/cli/definition.py | 1 | CODE | |
| LOW | httpie/cli/nested_json/__init__.py | 9 | CODE | |
| LOW | httpie/cli/nested_json/__init__.py | 9 | CODE | |
| LOW | httpie/cli/nested_json/__init__.py | 10 | CODE | |
| LOW | httpie/cli/nested_json/__init__.py | 11 | CODE | |
| LOW | httpie/cli/nested_json/__init__.py | 11 | CODE | |
| LOW | extras/packaging/linux/scripts/hooks/hook-pip.py | 1 | CODE | |
| LOW | extras/profiling/benchmarks.py | 34 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_ssl.py | 54 | CODE | |
| LOW | tests/utils/__init__.py | 244 | CODE | |
| LOW | docs/contributors/fetch.py | 193 | CODE | |
| LOW | httpie/sessions.py | 200 | CODE | |
| LOW | httpie/client.py | 43 | CODE | |
| LOW | httpie/core.py | 32 | CODE | |
| LOW | httpie/core.py | 170 | CODE | |
| LOW | httpie/output/streams.py | 63 | CODE | |
| LOW | httpie/output/streams.py | 198 | CODE | |
| LOW | httpie/cli/argparser.py | 227 | CODE | |
| LOW | httpie/cli/argparser.py | 282 | CODE | |
| LOW | httpie/cli/argparser.py | 409 | CODE | |
| LOW | httpie/cli/argparser.py | 492 | CODE | |
| LOW | httpie/cli/nested_json/interpret.py | 30 | CODE | |
| LOW | httpie/cli/nested_json/parse.py | 23 | CODE | |
| LOW | httpie/cli/nested_json/parse.py | 127 | CODE | |
| LOW | httpie/cli/nested_json/parse.py | 70 | CODE | |
| LOW | httpie/manager/tasks/plugins.py | 217 | CODE | |
| LOW | extras/profiling/run.py | 179 | CODE | |
| LOW | extras/scripts/generate_man_pages.py | 116 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | httpie/context.py | 172 | stderr = self.stderr # Not directly /dev/null, since stderr might be mocked | CODE |
| HIGH | httpie/output/lexers/json.py | 25 | fr'({PREFIX_REGEX})' + r'((?:[{\["]|true|false|null).+)', | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/utils/__init__.py | 183 | except Exception: | CODE |
| LOW | tests/utils/__init__.py | 413 | except Exception: | CODE |
| LOW | tests/utils/__init__.py | 439 | except Exception: | CODE |
| MEDIUM | tests/utils/__init__.py | 115 | def write(self, data): | CODE |
| LOW | docs/contributors/fetch.py | 52 | except Exception as exc: | CODE |
| LOW | httpie/core.py | 138 | except Exception as e: | CODE |
| LOW | httpie/uploads.py | 90 | except Exception: | CODE |
| LOW | httpie/output/ui/man_pages.py | 30 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | httpie/internal/daemon_runner.py | 13 | # This function is used only for the testing (test_update_warnings). | COMMENT |
| MEDIUM | extras/profiling/run.py | 125 | # Create a wheel distribution of HTTPie | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/utils/matching/__init__.py | 13 | __all__ = [ | CODE |
| LOW | httpie/cli/nested_json/interpret.py | 8 | __all__ = [ | CODE |
| LOW | httpie/cli/nested_json/__init__.py | 14 | __all__ = [ | CODE |
| LOW | httpie/cli/nested_json/parse.py | 17 | __all__ = [ | CODE |
| LOW | extras/scripts/generate_man_pages.py | 57 | def set_name(self, program_name: str) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_redirects.py | 41 | httpbin + '/redirect/2') | COMMENT |
| LOW | docs/markdownlint.rb | 21 | exclude_rule 'MD014' | COMMENT |
| LOW | httpie/plugins/base.py | 41 | # plugin to acquire credentials from the user’s netrc file(s). | COMMENT |
| LOW | httpie/output/lexers/common.py | 1 | def precise(lexer, precise_token, parent_token): | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/test_auth.py | 69 | 'username@example.org', | CODE |
| LOW⚡ | tests/test_auth.py | 70 | 'username:@example.org', | CODE |
| LOW | docs/README.md | 638 | "email": "john@example.org" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/installation/generate.py | 32 | CODE | |
| LOW | docs/installation/generate.py | 67 | CODE | |
| LOW | httpie/cli/requestitems.py | 200 | CODE | |
| LOW | httpie/cli/requestitems.py | 205 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_ssl.py | 65 | elif e.__context__ is not None: # Check if root cause was an unsupported TLS version | CODE |
| LOW | httpie/plugins/base.py | 37 | # Set this to `False` to disable the parsing and error handling. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | httpie/output/ui/palette.py | 40 | # we just create a new string. | COMMENT |