Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 34138 invoked by uid 500); 29 Aug 2002 10:31:36 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 34119 invoked from network); 29 Aug 2002 10:31:35 -0000 Received: from absolut.his.de (192.124.237.1) by daedalus.apache.org with SMTP; 29 Aug 2002 10:31:35 -0000 Received: from 10.1.0.76 by absolut.his.de (InterScan E-Mail VirusWall NT); Thu, 29 Aug 2002 12:31:35 +0200 Date: Thu, 29 Aug 2002 12:31:35 +0200 Message-ID: X-MS-Has-Attach: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] Apache Basic Authorization and Java Thread-Index: AcJPRzRlwGNitMQEQtuY6XMoTwm+lA== content-class: urn:content-classes:message From: "Skladovs, Victor" X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0 To: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: AW: [users@httpd] Apache Basic Authorization and Java Thanks for mail! Is it possible to make the following: to read the user and the password from the Http in Client and to forward this information further before opening a connection to servlet? How can I access the Apache Http from a client? Is it still "alive"? Thanks, Viktor -----Urspr=FCngliche Nachricht----- Von: Boyle Owen [mailto:Owen.Boyle@swx.com] Gesendet: Donnerstag, 29. August 2002 12:18 An: users@httpd.apache.org Betreff: RE: [users@httpd] Apache Basic Authorization and Java To see why this is happening, you need to understand how authentication works. To access the protected directory, all requests need to provide the Authorization header containing the username and password. This holds whether the request is from a browser or a java client. (see http://marc.theaimsgroup.com/?l=3Dapache-httpd-users&m=3D103044845517207&= w=3D2 ) Presumably your java client is making a request from the server - so it has to authenticate itself. You are lucky that the VM class which handles the socket recognises the 401 response and prompts you - I would have expected just an exception... To allow the java client to authenticate itself without prompting, you could build-in the Authorization header in the jave client (you need to add the line below to the request header): Authorization: BASIC Rgds, Owen Boyle >-----Original Message----- >From: Skladovs, Victor [mailto:Skladov@his.de] >Sent: Donnerstag, 29. August 2002 12:01 >To: users@httpd.apache.org >Subject: [users@httpd] Apache Basic Authorization and Java > > >Dear Friends! > >I have a problem with Apache Basic Authorization and Java Plug-In when >using the latest version of Netscape and Internet Explorer=20 >with Sun java >VM. > >I am not sure of being here right, but all my applies to Sun Forums and >other related user groups failed :-((( > >I'll try to explain the situation as clear as possible: >I'm using the Basic Authorization Scheme from Apache 1.3.26. >After logging in on the Web-server, I try to call my applet which >communicates with the application server through servlets (I use >Tomcat-4.0.4-LE as a servlet container). >When pressing the link from which an applet and a servlet are being >called, I get a Log-In Dialog again, but this time - from Java Plug-In. >although I had been already authenticated myself!=20 > >I have this problem only with the latest version of Netscape and with >all versions of Internet Explorer with SUN VM. When changing to >Microsoft VM in IE settings the problem dissappeared. But I'd like to >use the VM from SUN ... > >For the Netscape I haven't found any solution at all. The=20 >worst thing is >that I can't understand the nature of this "double" (one from Apache, >another from Java) authorization... Why doesn't Java know that=20 >I've been >already authenticated myself? Can I give Java this information at all? > >I'm using Java 1.4.0_01. > >Could anybody point me in the right direction? > >Thanks in advance >Viktor > > >--------------------------------------------------------------------- >The official User-To-User support forum of the Apache HTTP=20 >Server Project. >See for more info. >To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org >For additional commands, e-mail: users-help@httpd.apache.org > > --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org