Timeline for Python Requests doesnt work for https proxy
Current License: CC BY-SA 3.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 18, 2017 at 12:46 | vote | accept | Mrs_HillaryClinTon | ||
| Jul 18, 2017 at 12:43 | answer | added | cs95 | timeline score: 5 | |
| Jul 18, 2017 at 12:40 | comment | added | Mrs_HillaryClinTon | @cᴏʟᴅsᴘᴇᴇᴅ nevermind, i had a system proxy set up. I removed it and now i always get my ip address instead of proxy from python | |
| Jul 18, 2017 at 12:35 | comment | added | Mrs_HillaryClinTon |
@cᴏʟᴅsᴘᴇᴇᴅ i tried to set allow_redirects=True and it still same weird results, for example for proxy 79.110.31.87:8085 i got {"ip":"162.220.246.230"} i tried to ,make request to whoer.net and it display the same ip
|
|
| Jul 18, 2017 at 12:29 | comment | added | cs95 |
It might have something to do with allow_redirects=False. In your browser, redirects are allowed automatically. Let me know if removing that fixes it, I'll create an answer for posterity.
|
|
| Jul 18, 2017 at 12:27 | comment | added | Mrs_HillaryClinTon |
@COLDSPEED Thanks! I think it works now, but it gives me not the proxy ip for some, but other ip. Its not my ip, but its not a proxy ip either, in the browser with proxy i visit same site and see the proxy ip. proxy_line contains a proxy like this: 79.110.31.87:8085, and in the browser i see the same ip when visiting api.ipify.org, but from python i get weird addresses
|
|
| Jul 18, 2017 at 12:26 | answer | added | efirvida | timeline score: 0 | |
| Jul 18, 2017 at 12:22 | comment | added | cs95 |
Remove the http:// and https://? Also, what does a sample proxy_line contain?
|
|
| Jul 18, 2017 at 12:12 | answer | added | Víctor López | timeline score: 0 | |
| Jul 18, 2017 at 12:07 | review | First posts | |||
| Jul 18, 2017 at 12:11 | |||||
| Jul 18, 2017 at 12:06 | history | asked | Mrs_HillaryClinTon | CC BY-SA 3.0 |