[1837] in java-interest

home help back first fref pref prev next nref lref last post

Re: slowly getting there

daemon@ATHENA.MIT.EDU (Stephen F. White)
Mon Sep 18 19:30:31 1995

Date: Fri, 15 Sep 1995 17:40:28 -0400
From: "Stephen F. White" <sfw@io.org>
To: java-interest@java.Eng.Sun.COM

> I'm currently trying to read a passwd protected page. Here's the 
> html for teh page,

[deleted]

> My output ..

> <H1>Error 404</H1>

> Not found - file doesn't exist or is read protected [even tried multi]

> <P><HR><ADDRESS><A HREF="http://info.cern.ch/httpd_3.0/">CERN httpd 3.0</A></ADD
> RESS>
> </BODY>
> </HTML>

this means that the cern server couldn't find the URL you are
looking for.  it didn't even get to the password protection part.
if you have access to the server logs, take a look to see what URL
your client was requesting.  i can't help you with the java code,
but this is the way basic authentication works:

<client sends an HTTP request>
	<server responds with 401, Unauthorized>
	(includes a WWW-Authenticate: field containing a realm)

<client prompts user for name & password>
<client sends new request to same URL, with HTTP field Authorization:  ***>
	<server	 responds with 400 OK & document>

note that most clients will store the username & password for a
particular realm for a session & reuse them automatically for each
challenge, so you only get prompted once.

with basic authentication, the only form of encryption used is
base64, which is essentially uuencoding.  the being said, you  will
need to uuencode the data somehow.  perhaps you can use the java
uuencoder class, i'm not sure.  (come to think of it, most of this
stuff is probably already implemented for hotjava).

-=- sfw

--OAA28138.811201428/java.sun.com--

FFrom @@Sun.COM  Fri Sep 15 15:25:07 1995
Return-Path: <@@Sun.COM>
Received: from scndprsn.Eng.Sun.COM by escher.Eng.Sun.COM (5.x/SMI-SVR4)
	id AA10569; Fri, 15 Sep 1995 15:25:06 -0700
Received: from Eng.Sun.COM (mailhost) by scndprsn.Eng.Sun.COM (5.x/SMI-SVR4)
	id AA15962; Fri, 15 Sep 1995 15:25:07 -0700
Received: from mercury.Sun.COM (mercury.EBay.Sun.COM) by Eng.Sun.COM (5.x/SMI-5.3)
	id AA04878; Fri, 15 Sep 1995 15:25:03 -0700
Received: from java.sun.com by mercury.Sun.COM (Sun.COM)
	id PAA28326; Fri, 15 Sep 1995 15:24:57 -0700
Received: from localhost (localhost) by java.sun.com (8.6.12/8.6.12) with internal id PAA29398; Fri, 15 Sep 1995 15:23:51 -0700
Date: Fri, 15 Sep 1995 15:23:51 -0700
From: Mail Delivery Subsystem <MAILER-DAEMON@java>
Subject: Returned mail: unknown mailer error 1
Message-Id: <199509152223.PAA29398@java.sun.com>
To: owner-java-interest@java
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="PAA29398.811203831/java.sun.com"
content-length: 1447

This is a MIME-encapsulated message

--PAA29398.811203831/java.sun.com

The original message was received at Fri, 15 Sep 1995 15:20:45 -0700
from trillian.macworld.com [204.160.211.30]

   ----- The following addresses had delivery problems -----
"|/usr/local/majordomo/wrapper majordomo -l java-interest-digest"  (unrecoverable error)
    (expanded from: j-dig-req-program)

   ----- Transcript of session follows -----
Message delivered to mailing list <java-interest-digest-request@java.sun.com>
Out of memory!
554 "|/usr/local/majordomo/wrapper majordomo -l java-interest-digest"... unknown mailer error 1

   ----- Original message follows -----

--PAA29398.811203831/java.sun.com
Content-Type: message/rfc822

Return-Path: michael@trillian.Advanced.COM
Received: from mailhost.Advanced.COM (trillian.macworld.com [204.160.211.30]) by java.sun.com (8.6.12/8.6.12) with ESMTP id PAA29369 for <java-interest-digest-request@java.sun.com>; Fri, 15 Sep 1995 15:20:45 -0700
Received: from mickey.advanced.com by mailhost.Advanced.COM (8.6.9/SMI-4.1)
	id PAA27094; Fri, 15 Sep 1995 15:20:13 -0700
Received: by mickey.advanced.com (5.x/SMI-SVR4)
	id AA08458; Fri, 15 Sep 1995 15:20:10 -0700
Date: Fri, 15 Sep 1995 15:20:10 -0700
From: michael@trillian.Advanced.COM (Michael O'Connell)
Message-Id: <9509152220.AA08458@mickey.advanced.com>
To: java-interest-digest-request@java.sun.com
X-Sun-Charset: US-ASCII

who

--PAA29398.811203831/java.sun.com--

rom @@Sun.COM  Fri Sep 15 15:25:08 1995
Return-Path: <@@Sun.COM>
Received: from scndprsn.Eng.Sun.COM by escher.Eng.Sun.COM (5.x/SMI-SVR4)
	id AA10573; Fri, 15 Sep 1995 15:25:07 -0700
Received: from Eng.Sun.COM (mailhost) by scndprsn.Eng.Sun.COM (5.x/SMI-SVR4)
	id AA15963; Fri, 15 Sep 1995 15:25:08 -0700
Received: from mercury.Sun.COM (mercury.EBay.Sun.COM) by Eng.Sun.COM (5.x/SMI-5.3)
	id AA04872; Fri, 15 Sep 1995 15:24:58 -0700
Received: from java.sun.com by mercury.Sun.COM (Sun.COM)
	id PAA28309; Fri, 15 Sep 1995 15:24:53 -0700
Received: from localhost (localhost) by java.sun.com (8.6.12/8.6.12) with internal id PAA29390; Fri, 15 Sep 1995 15:23:39 -0700
Date: Fri, 15 Sep 1995 15:23:39 -0700
From: Mail Delivery Subsystem <MAILER-DAEMON@java>
Subject: Returned mail: unknown mailer error 1
Message-Id: <199509152223.PAA29390@java.sun.com>
To: owner-java-announce@java
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="PAA29390.811203819/java.sun.com"
content-length: 1414

This is a MIME-encapsulated message

--PAA29390.811203819/java.sun.com

The original message was received at Fri, 15 Sep 1995 15:20:20 -0700
from trillian.macworld.com [204.160.211.30]

   ----- The following addresses had delivery problems -----
"|/usr/local/majordomo/wrapper majordomo -l java-announce"  (unrecoverable error)
    (expanded from: ja-request-program)

   ----- Transcript of session follows -----
Message delivered to mailing list <java-announce-request@java.sun.com>
Out of memory!
554 "|/usr/local/majordomo/wrapper majordomo -l java-announce"... unknown mailer error 1

   ----- Original message follows -----

--PAA29390.811203819/java.sun.com
Content-Type: message/rfc822

Return-Path: michael@trillian.Advanced.COM
Received: from mailhost.Advanced.COM (trillian.macworld.com [204.160.211.30]) by java.sun.com (8.6.12/8.6.12) with ESMTP id PAA29354 for <java-announce-request@java.sun.com>; Fri, 15 Sep 1995 15:20:20 -0700
Received: from mickey.advanced.com by mailhost.Advanced.COM (8.6.9/SMI-4.1)
	id PAA27041; Fri, 15 Sep 1995 15:19:23 -0700
Received: by mickey.advanced.com (5.x/SMI-SVR4)
	id AA08449; Fri, 15 Sep 1995 15:19:19 -0700
Date: Fri, 15 Sep 1995 15:19:19 -0700
From: michael@trillian.Advanced.COM (Michael O'Connell)
Message-Id: <9509152219.AA08449@mickey.advanced.com>
To: java-announce-request@java.sun.com
X-Sun-Charset: US-ASCII

info

--PAA29390.811203819/java.sun.com--

-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post