If I set network proxy in network settings on my computer (gnome 3 , fedora) when I do post get reuests in my python script will they go through the proxy or through direct connection?
what will python use? chrome browser gets proxified when I set proxy in neetwork, same for python?
if so how to use direct connection from python? like firefox does
This depends on how you connect to remote servers via Python. The
urllibandurllib2libraries will honour the*_PROXYenvironment variables (e.g.HTTP_PROXY,HTTPS_PROXY, etc.). From theurllibdocumentation page:Note that you can also use the
NO_PROXYenvironment variable to list exceptions.You’ll need to be more specific about your Python network usage to be any more specific.