Skip to content

Proxy Auth #1125

Answered by jshcodes
DarksideVT asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @DarksideVT -

Thank you for the question!

Requests handles proxy authorization formatting a little strangely. Did some digging, and this appears to work for me in my testing environment. Give this syntax a shot and let us know.

import logging
from falconpy import Hosts

logging.basicConfig(level=logging.DEBUG)

proxies = {
    "https": "https://PROXYUSER:PROXYPASSWORD@PROXYHOST:PROXYPORT"
}
hosts = Hosts(debug=True, proxy=proxies)

hosts.query_devices_by_filter_scroll()

We will make sure this gets added to the documentation. Thank you!

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jshcodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
authentication Issues or questions regarding authentication
2 participants