T
T
Ternick2019-02-23 16:12:41
Python
Ternick, 2019-02-23 16:12:41

Why is my IP address determined when requesting through a proxy?

import requests
proxies = {'http': "socks5://1.0.200.161:8080"}
r = requests.get('https://ifconfig.co/ip', proxies=proxies)
print(r.text)

5c71484d246be746699220.png
Why is the received ip mine, and not a proxy?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2019-02-23
@Ternick

Because proxiesyou have the http key in the dictionary, and you are making a request to http s .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question