SSL (https:) access from script

Hello All…
I need to script access to a web page (https://) via Jython (at least, I guess that’s the best way) from within Ignition. I’ve had success externally using the urllib2 module (v2.6+ Python) but does not work within Ignition (v2.5 Jy/Python). Is there another way to ‘get there’? I need to authenticate basic and use a cert to access the site.

Thanks for any help!

You can import the urllib2 in Ignition, Can you send in the error you are getting? You can either post it here or email it into us at (make sure to hide the username/password). That way we can figure out where exactly the problem is coming from.

Was this ever answered? I am getting the following error from a simple button test. My test position is that it works manually from IE on the same pc running the designer and python 2.7.

urllib2.URLError: <urlopen error (10061, ‘Connection refused’)>


import urllib2
import base64

request = urllib2.Request(‘https://url….’)
base64string = base64.encodestring(’%s:%s’ % (‘username’, ‘password’))
request.add_header(“Authorization”, “Basic %s” % base64string)
result = urllib2.urlopen(request)

Most likely you set a proxy in IE so your script can’t really connect to the internet. I think you need to do something like this:h = urllib.urlopen(website, proxies = {'http': proxy})