[10256] in www-talk@info.cern.ch
Re: About Sending Authentication Header Using Java-applet
daemon@ATHENA.MIT.EDU (Matthew Denner)
Tue Aug 27 08:57:39 1996
Date: Tue, 27 Aug 1996 12:50:34 +0100
From: Matthew Denner <matt@wdi.co.uk>
Reply-To: matt@wdi.co.uk
To: www-talk@w3.org
Resent-From: 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
-----------------------------------------------------------------------