about Jetty httpclient

3 views
Skip to first unread message

Jerry

unread,
Jun 22, 2009, 12:03:41 PM6/22/09
to cometd-dev
Hi,All

I'd like to use httpclient within Jetty to do authentication with
server ,in the server side the security authentication mode is basic
mode. I'd like to use this method to do authentication and use
securitypolicy to do authorization. I try to use httpclient to set
user name and password, but I do not know how to implement, I search
apache httpclient, it has some sample code, but for Jetty httpclient,
I can not find any sample code to do .Who can help me , Thanks a lot
in advance.

Jerry

Jan Bartel

unread,
Jun 22, 2009, 7:53:13 PM6/22/09
to comet...@googlegroups.com
Jerry,

The documentation is very thin on the HttpClient.

Perhaps you might find it helpful to look at a test case that
uses authentication to see how it is used:

https://svn.codehaus.org/jetty/jetty/branches/jetty-6.1/extras/client/src/test/java/org/mortbay/jetty/client/SecurityListenerTest.java

Once you've worked it out, we'd welcome the contribution
of some documentation for it :)

regards,
Jan
Reply all
Reply to author
Forward
0 new messages