W3C home > Mailing lists > Public > www-talk@w3.org > July to August 1996

Re: About Sending Authentication Header Using Java-applet

From: Matthew Denner <matt@wdi.co.uk>
Date: Tue, 27 Aug 1996 12:50:34 +0100
Message-ID: <3222E10A.4CCE@wdi.co.uk>
To: www-talk@w3.org
> I've set the authentication of the path /MyPages/MySecret/ to username=John
> and password=sesame on the WebSite 1.1 WWW-server.
> Then I want to use a Java-applet to open a html page in that
> password-locked path by sending HTTP request header ALONG WITH the username
> and password, so that NO pop-up username/password dialog will appear and
> just strait-forward to that page.
> So, my question is what is the HTTP request header would be ?
> Is that :
>    GET /MyPages/MySecret/index.html\r\n
>    Content-type: blah blah\r\n
>    Authenticate: blah blah\r\n
>    .
>    .
>    .
>    \r\n
> 

Close, but what you've given is a mixture of HTTP requests and
response.  The
actual HTTP/1.0 request should be:

	GET /MyPages/MySecret/index.html HTTP/1.0\r\n
	Authenticate: base64-encoded-string\r\n
	\r\n

The 'Content-type' header is sent from the server to the client to
inform the
browser of the, well, type of content contained within the response.

Cheers,
Matt

-----------------------------------------------------------------------
Matthew Denner  			email:	matt@wdi.co.uk
Senior Programmer			tel:	(+44)(0) 1305 871 543
Abbotsbury Software Ltd			fax:	(+44)(0) 1305 871 688
ENGLAND					mobile:	(+44)(0) 385  795 492
-----------------------------------------------------------------------
Received on Tuesday, 27 August 1996 08:55:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 October 2010 18:14:19 GMT