Re: About Sending Authentication Header Using Java-applet

> 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

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.


Matthew Denner  			email:
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 UTC