Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternative parameters: port #32

Open
zetto33 opened this issue Jul 12, 2023 · 1 comment
Open

Alternative parameters: port #32

zetto33 opened this issue Jul 12, 2023 · 1 comment

Comments

@zetto33
Copy link

zetto33 commented Jul 12, 2023

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)

@christopheguengant
Copy link

Hello,

thanks for your post, i was struggling with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants