I'm trying to write a servlet which forwards the request to a page
that's normally protected by HTTP authentication, but if the user is
logged on to my system the user should be granted access to the
protected pages without entering a separate login/password for the
protected pages.

Is this the way to go to protect files on a web server (and grant some
users, which are verified through my servlet, access) , by the way?

Thankyou so far!


Markus Kirsten

On onsdag, februari 20, 2002, at 08:21 , Christopher K. St. John wrote:

> Markus Kirsten wrote:
>>
>> Does anyone know how to access resources (such as HTML files for
>> example) that requires basic HTTP authentication? Which framework to
>> use, how to use it or which web page to look at? :-)
>>
>
>  rfc2617. Do you mean you're trying to write a client to
> connect to a web page that's protected, or that you're
> trying to protect a web page? For the client side, take
> a look at java.net.Authenticator and friends:
>
>   http://www.javaworld.com/javaworld/javatips/jw-javatip46.html
>
> or, if you're willing to go third-party:
>
>   http://www.innovation.ch/java/HTTPClient/
>
>
> --
> Christopher St. John [EMAIL PROTECTED]
> DistribuTopia http://www.distributopia.com
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to