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

Proxy Configuration Problem #421

Open
mominurr opened this issue Oct 28, 2024 · 1 comment
Open

Proxy Configuration Problem #421

mominurr opened this issue Oct 28, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@mominurr
Copy link

mominurr commented Oct 28, 2024

my code:

proxy = f'https://{username}:{password}@{host}:{port}'
response = requests.get(url[0], impersonate="chrome", proxy=proxy, timeout=(10, 10))

My proxy provider gives me this format (proxy = f'https://{username}:{password}@{host}:{port}') configuration for proxy. I am using an HTTPS proxy. I read your documentation and also this issue (#6) where I can see that the proxy format: "http://user@pass:proxy_url"

But my code is working. So I hope you will fix this issue.

code warning:

D:\Developing\W.S-PROJECT\realself.com\env\lib\site-packages\curl_cffi\requests\session.py:965: RuntimeWarning: Make sure you are using https over https proxy, otherwise, the proxy prefix should be 'http://' not 'https://', see: https://github.com/lexiforest/curl_cffi/issues/6
  req, buffer, header_buffer, q, header_recved, quit_now = self._set_curl_options(
@mominurr mominurr added the bug Something isn't working label Oct 28, 2024
@lexiforest lexiforest added enhancement New feature or request and removed bug Something isn't working labels Dec 3, 2024
@lexiforest
Copy link
Owner

Sure, I guess I should make this warning optional. It's pretty annoying when you know what you are doing.

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

No branches or pull requests

2 participants