Date: Thu, 08 Jul 1999 14:04:11 -0500
From: MuppGoku Super Saiya-Jin <raul@ctyd.com.mx>
To: java-security@java.sun.com
Subject: Help
--------------84F607493F630F6B3EB2FADE
Content-Type: text/plain; charset="us-ascii"
X-Sun-Content-Length: 1497
Hi!
i'm trying to connect to my web server with a java application doing the
following:
.....
URL url = new
URL("http://"+_login_in.getText()+":"+_passwd_in.getText()+"@"+
_server_in..getText()+"/webnative/listdir");
System.out.println("DEBUG_URL: "+"http://"+
_login_in.getText()+":"+_passwd_in.getText()+"@"+
_server_in..getText()+"/webnative/listdir");
URLConnection urlc =url.openConnection();
urlc.connect();
.....
and the application throws the following exception, i also tried with
'openStream' and with an applet but the result is the same:
DEBUG_URL: http://username:pwd@myhost.com/webnative/listdir
java.net.UnknownHostException: username
at java.net.InetAddress.getAllByName0(Compiled Code)
at java.net.InetAddress.getAllByName0(Compiled Code)
at java.net.InetAddress.getByName(Compiled Code)
at java.net.Socket.<init>(Compiled Code)
at sun.net.NetworkClient.doConnect(Compiled Code)
...
How can i connect to my server (NS/Fasttrack 2.0 http://user:pwd@host)? can you help me?
Thanks and Regards
-- _________________________________________________ Ing. Raul Alvarez Aguileta | Expect | Linux/Unix Sysadm | l3 MuppGoku! | email: raul@ctyd.com.mx | .~. L | http://www.expect.com.mx | /V I | Ph/Fx: 525-6884910 | // \ N | Mobil: 525-2175955 | /( ) U | ________________________________|___ ^`~`^_X____|
--------------84F607493F630F6B3EB2FADE Content-Type: text/html; charset="us-ascii" X-Sun-Content-Length: 2710
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> Hi!
i'm trying to connect to my web server with a java application doing the following:
.....
URL url = new URL("http://"+_login_in.getText()+":"+_passwd_in.getText()+"@"+
_server_in..getText()+"/webnative/listdir");
System.out.println("DEBUG_URL: "+"http://"+ _login_in.getText()+":"+_passwd_in.getText()+"@"+
_server_in..getText()+"/webnative/listdir");
URLConnection urlc =url.openConnection();
urlc.connect();
.....
and the application throws the following exception, i also tried with 'openStream' and with an applet but the result is the same:DEBUG_URL: http://username:pwd@myhost.com/webnative/listdir
java.net.UnknownHostException: username
at java.net.InetAddress.getAllByName0(Compiled Code)
at java.net.InetAddress.getAllByName0(Compiled Code)
at java.net.InetAddress.getByName(Compiled Code)
at java.net.Socket.<init>(Compiled Code)
at sun.net.NetworkClient.doConnect(Compiled Code)
...How can i connect to my server (NS/Fasttrack 2.0 http://user:pwd@host)? can you help me?Thanks and Regards-- _________________________________________________ Ing. Raul Alvarez Aguileta | Expect | Linux/Unix Sysadm | l3 MuppGoku! | email: raul@ctyd.com.mx | .~. L | http://www.expect.com.mx | /V I | Ph/Fx: 525-6884910 | // \ N | Mobil: 525-2175955 | /( ) U | ________________________________|___ ^`~`^_X____|--------------84F607493F630F6B3EB2FADE--