Skip to content

httpx cli --proxy and --proxies option problem #2124

Closed

Description

@guyskk

The httpx --help shows --proxy option, but actually it accepts --proxies option.

Which is correct? Is there an undocumented change from--proxy to --proxies?

Activity

  1. guyskk commented on Mar 14, 2022

    @guyskk
    ContributorAuthor

    And is there a standalone repo of httpx cli in the history? I remember I submitted an issue but can not find it.

  2. florimondmanca commented on Mar 14, 2022

    @florimondmanca
    Contributor

    @guyskk AFAIK, no, httpx-cli is now integrated into this repository, with code in httpx/_main.py.

    I assume the correct option is proxies, since that is what the CLI accepts and also what the Client accepts: Client(proxies=...). Would you like to submit a fix?

  3. added a commit that references this issue on Mar 14, 2022
  4. guyskk commented on Mar 14, 2022

    @guyskk
    ContributorAuthor

    @florimondmanca Thank you! PR submitted #2125 .

  5. added a commit that references this issue on Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsChanges to the documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions