Oct-31-2018, 01:44 PM
Hi,
I think I'm having some issues with urllib but I'm not sure what exactly is the problem.
While trying a basic code as :
while running under git Bash I'm getting 'connected!'
Any idea what could be the difference?
This is just a basic test as I'm trying to connect to P4 through p4python and to Rally with pyral.
I'm connected through corporate proxy.
Thanks!
I think I'm having some issues with urllib but I'm not sure what exactly is the problem.
While trying a basic code as :
import urllib import urllib.request def connected(host='http://www.google.com'): try: urllib.request.urlopen(host) return True except: return False # test print( 'connected' if connected() else 'no internet!' )While running this code through PyScripter or PyCharm I'm getting 'no internet!' message
while running under git Bash I'm getting 'connected!'
Any idea what could be the difference?
This is just a basic test as I'm trying to connect to P4 through p4python and to Rally with pyral.
I'm connected through corporate proxy.
Thanks!