-
-
Notifications
You must be signed in to change notification settings - Fork 290
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
[BUG] Cannot change proxy on the fly #369
Comments
- a.s.curl.setopt(curl_cffi.CurlOpt.PROXY,'socks5h://127.0.0.1:2085')
+ proxy = 'socks5://127.0.0.1:2085/' It seems that you switched from |
Nah I did it intentionally to see if socks5/socks5h caused the problem. I also tried socks5h as well. It won't work. Btw, this might be a libcurl bug |
I only found curl/curl#648, which has been fixed, though. |
I do not know why this bug happens too :( . But create a new session and copy headers, cookies to the new one with another proxy server specified, works flawlessly. |
Try adding |
Describe the bug
After you make a request to a website (i.e first request) with a proxy server, in the second request, try to use another proxy server, it would not work.
I have tried using a.s.proxies = {'https': 'socks5h://127.0.0.1:2085/'} as well. After changing, it also gives the same error.
To Reproduce
Expected behavior
A clear and concise description of what you expected to happen.
The program will be change it's proxy server in the next request
Versions
pip freeze
dumpAdditional context
The text was updated successfully, but these errors were encountered: