httpx equivalent of curl's "--location-trusted" #3083
Unanswered
brandonbiggs
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use the new OpenAI python package. My environment is setup in such a way that there are redirects involved. So I'm following the suggestion to specifically manage the http client:
openai/openai-python#785 (comment)
This is working, except that the my authentication header isn't getting to the endpoint and I'm getting a permission denied.
But as soon as I add the
--location-trustedflag, it's working.Does HTTPX have an equivalent of this?
I did try passing along the headers:
Beta Was this translation helpful? Give feedback.
All reactions