Skip to content

Alternative parameters: port #32

@zetto33

Description

@zetto33

Hi, first of all thank you a lot to share this excellent lib.
I would like to make a request. Is that possible to add a feature to connect into an alternative port?

According to docs it accepts as alternative parameters: adom, protocol (http=80/https=443), verify, and proxies.

I have just modified port_by_scheme = {"http": 80, "https": 8443} into file ./site-packages/urllib3/connection.py to accept an alternative port.

Once again, thank you!


Edited
please, never mind.. fortimngr = pyFortiManagerAPI.FortiManager(host="1.2.3.4:8443", username="someuser", password="somepass", verify=False)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions