sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #31069
[Question #263707]: How to use https with Jython
New question #263707 on Sikuli:
https://answers.launchpad.net/sikuli/+question/263707
Sometimes I need to access web pages and get its contents, with sikuli I can open the browser and do it, but I would like to know if it can be done using Python. I tried the module request, urllib, urllib2. And seems SSL support inside Jython is broken.
Im using Sikuli 1.1.0 with Linux.
Im having the same problem as this question: https://answers.launchpad.net/sikuli/+question/259267
To simplify the problem, a simple code like that doesn't work inside Sikuli, but works in a Python script outside Sikuli:
import urllib2
response = urllib2.urlopen('https://www.httpsnow.org/')
html = response.read()
The problem is that I need to deal with a webservice through https, so I cannot do that with the browser. I can do that simply executing curl in the shell :), so at the end I have an alternative.
But is this possible inside Sikuli, using any Python module being interpreted through Jython?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.