Issue998602
Created on 2004-07-27.09:57:37 by saffi_h, last changed 2012-12-22.13:09:37 by amak.
| msg915 (view) |
Author: Saffi (saffi_h) |
Date: 2004-07-27.09:57:37 |
|
>>> import urllib
>>> urllib.urlopen("https://www.verisign.com/")
Traceback (innermost last):
File "<console>", line 1, in ?
File "d:\jython22a0\Lib\urllib.py", line 73, in urlopen
File "d:\jython22a0\Lib\urllib.py", line 175, in open
File "d:\jython22a0\Lib\urllib.py", line 187, in
open_unknown
IOError: [Errno url error] unknown url type: https
>>>
|
| msg916 (view) |
Author: Saffi (saffi_h) |
Date: 2004-07-27.11:31:02 |
|
Logged In: YES
user_id=1071900
it is not java config problem. since : pure java url
getting and using - works
form java.lang import *
from java.net import *
System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
Security.addProvider(new
com.sun.net.ssl.internal.ssl.Provider());
URL url = new URL("https://www.verisign.com");
url.openStream()
|
| msg917 (view) |
Author: Mike_G (archon55) |
Date: 2004-12-28.17:39:04 |
|
Logged In: YES
user_id=1186138
Since you are using Jython why don't you use the java.net
classes like this:
>>> from java.net import *
>>> http_url=URL("https://www.verisign.com/")
>>> url_conn=http_url.openConnection()
>>> url_conn
sun.net.www.protocol.https.DelegateHttpsURLConnection:https://www.verisign.com/
>>>
Now you can use the I/O streams to communicate with the site.
mg
|
| msg918 (view) |
Author: Alan Kennedy (amak) |
Date: 2007-05-18.21:09:16 |
|
This bug is now fixed; ssl support is now provided in socket module.
Here is a transcript of the above session with the new support.
Jython 2.2b2 on java1.4.2_13
Type "copyright", "credits" or "license" for more information.
>>> import urllib
>>> u = urllib.urlopen("https://www.verisign.com/")
>>> print "%d bytes read" % len(u.read())
32555 bytes read
>>>
|
|
| Date |
User |
Action |
Args |
| 2012-12-22 13:09:37 | amak | set | assignee: amak title: urllib : https request does not work -> urllib : https request does not work |
| 2004-07-27 09:57:37 | saffi_h | create | |
|