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.
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 support@inductiveautomation.com (make sure to hide the username/password). That way we can figure out where exactly the problem is coming from.
Hello,
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.
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})