You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug:
The curl_cffi library does not switch proxies correctly when only the username in the proxy URL changes, while other components (host, port, and password) remain the same. This issue is observed when multiple proxies are used sequentially in a single session, resulting in all requests incorrectly using the first proxy's credentials.
To Reproduce:
Steps to reproduce the behavior:
Set up a Session with proxies that differ only in the username.
Execute requests to a target website (e.g., httpbin.org/ip) that returns the requester's IP.
Notice that the session fails to update the proxy after the initial set, using the first proxy for all requests.
Expected behavior:
Each request should reflect the IP of the corresponding proxy defined by its username. However, the actual output shows the IP of the first proxy for both requests, indicating that the proxy change was not recognized.
Additional context:
The session used is synchronous.
The proxy credentials issue suggests a possible mishandling in the proxy management within the session, particularly with caching or parsing mechanisms.
The text was updated successfully, but these errors were encountered:
You can try adding Connection: close header or downgrading to HTTP/1.1, but it's not guaranteed to work.
IMHO, this is the correct behavior actually. Establishing new connection to the same address is quite inefficient, and these auto-rotating proxies abuse the behavior.
Describe the bug:
The curl_cffi library does not switch proxies correctly when only the username in the proxy URL changes, while other components (host, port, and password) remain the same. This issue is observed when multiple proxies are used sequentially in a single session, resulting in all requests incorrectly using the first proxy's credentials.
To Reproduce:
Steps to reproduce the behavior:
Set up a Session with proxies that differ only in the username.
Execute requests to a target website (e.g., httpbin.org/ip) that returns the requester's IP.
Notice that the session fails to update the proxy after the initial set, using the first proxy for all requests.
Expected behavior:
Each request should reflect the IP of the corresponding proxy defined by its username. However, the actual output shows the IP of the first proxy for both requests, indicating that the proxy change was not recognized.
Versions:
OS: Ubuntu 20.04.4 LTS
curl_cffi version: 0.6.3
Python version: 3.10.12
Additional context:
The session used is synchronous.
The proxy credentials issue suggests a possible mishandling in the proxy management within the session, particularly with caching or parsing mechanisms.
The text was updated successfully, but these errors were encountered: