๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.lenguajes.java
Article #26359

SSL en la clase URL

#26359
From: Rafael Delgado
Date: Wed, 13 Jan 1999 00:00
37 lines
1239 bytes
Hola:

He intentado crear un objeto URL:

  URL u;

  if (a.length<0)
  {
   System.out.println("TPV :Numero incorrecto de par๏ฟฝmetro");
   System.exit(1);
  }

  try
  {
     u = new URL("http://www.xxxxx.es")
       System.out.println("protocol = " + u.getProtocol());
       System.out.println("host = " + u.getHost());
       System.out.println("filename = " + u.getFile());
       System.out.println("port = " + u.getPort());
       System.out.println("ref = " + u.getRef());
  }
  catch(MalformedURLException e)
  {
   System.out.println("ERROR en URL "+ e);
   System.exit(1);
  }


Pero cuando intento hacer la conexion a (HTTPS):

     u = new URL("https://www.xxxxx.es")

Me dice que el protocolo (HTTPS)  es desconocido.

Puedo solucionarlo de alguna forma.

Gracias
Technical Details
Message-ID: <77ir4i$r30$1@diana.bcn.ttd.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 1116f3,39b23c5f611f6e9f,start
X-Google-Attributes: gid1116f3,public
From: "Rafael Delgado" <rafaeldp@caymasa.es>
Subject: SSL en la clase URL
Date: 1999/01/13
Message-ID: <77ir4i$r30$1@diana.bcn.ttd.net>
X-Deja-AN: 432234029
Organization: Telefonica Transmision de Datos
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: es.comp.lenguajes.java