My code is like this:
import requests
proxies = {'http':'ip:port'}
r = requests.get('http://example.com', proxies = proxies)
And when I run this code in a PC with a unique ip address, it works fine, BUT when I run this code in a PC behind a router, it cannot get any response. After I check the proxy server, I find out that the connection was not in the log of the proxy server.
I cannot figure this out, please help, thanks a lot.
With @MilkeyMouse's help, I changed my code to:
proxies = {'http':'http://ip:port'}
But it still doesn't work.