users
[Top] [All Lists]

Re: [cinjug-users] RESTful service HTTP digest authentication

To: CinJug <users@xxxxxxxxxx>
Subject: Re: [cinjug-users] RESTful service HTTP digest authentication
From: "Edward Sumerfield" <esumerfd@xxxxxxxxxxxxxx>
Date: Tue, 25 Sep 2007 10:18:54 -0400
Delivered-to: mailing list users@xxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; bh=l5rBaRqa781TunfJKSMudm/ujS3k8JLyKqCcB6geab0=; b=C9jfY8u4K4g3nFhnFUYY/ped/8WImTFYNZfvuqJqJz/BLNzF/rOzzUqAKtGqSK/tr0IwWRurklm89Xc3p9mrFxC857Wgx1c1kZKv+0x+DPGn3lE9MVoDQfWURDYIalW9RHM4KVjU1xR+hub7TLnQuxwpS7XiaDzj8kcw9BrFpi4=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=PBgomCLD0N14ipxRuElhNFYJwmS02JkkSPw7kq361XtLthrJo/XpKZGddELT6Y01INJjdoWIeliRBfwEma1lDQ1n2XnTq30PBiizyF0VafdYUwmPs56NJc1GFZo0DgtYRWmhFWEfCRCdybQLeZlJtNEew/XUTlkkTLKzAMsyasA=
In-reply-to: <6877.53196.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Mailing-list: contact users-help@xxxxxxxxxx; run by ezmlm
References: <6877.53196.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Reply-to: esumerfd@xxxxxxxxxxxxxx
Sender: esumerfd@xxxxxxxxx
One thing to be careful of with HtmlUnit is that its goals are to test web pages so it does lots of fuzzy-parsing of the page so that we can assert the values on the page. HttpClient should do the job for you though I usually end up wrapping it in a simple Http.get(url) method because its API is not the simplest.

 
On 9/25/07, Adam Schaible <schaible_adam@xxxxxxxxx> wrote:
There's also a package called HtmlUnit (I THINK!!) that wraps HttpClient (which wraps the Sun API) - it's actually easier to use than HttpClient, and will work 99% of the time you could use HttpClient.
 
Adam Schaible
 
Never forget again!
http://www.rememberit.us
Free email reminder service!


----- Original Message ----
From: "Hudson, Loren (GE Infra, Aviation, Non-GE, US)" < loren.hudson@xxxxxx>
To: users@xxxxxxxxxx
Sent: Tuesday, September 25, 2007 8:19:14 AM
Subject: RE: [cinjug-users] RESTful service HTTP digest authentication

I can personally speak to the ease of use of Apache's HttpClient.  I was trying to use Sun's API, and it would have worked fine, but I had to authenticate to both an internal proxy and the external website, keep cookies, the whole nine yards.  With HttpClient, not only did I get farther in 15 minutes than I did with Sun in 4 hours, but I used less code.
 
Mike Hudson
MDW - Military Data Warehouse
Java Developer/Solution Architect
Sogeti Consultant
loren.hudson@xxxxxx
Desk: 513-243-3663 ~ Dialcomm: *332-3663
Cell: 513-546-4166
 


From: wonton927 [mailto:wonton927@xxxxxxxxx]
Sent: Monday, September 24, 2007 9:08 PM
To: users@xxxxxxxxxx
Subject: Re: [cinjug-users] RESTful service HTTP digest authentication

 
Thanks for the info.  I think I can use HttpClient, but I will spend some time tomorrow on Restlet API to see which is better from implementing digest authentication's point.

Ling

Abdul Habra < ahabra@xxxxxxxxx> wrote:
If you cannot find a RESTful client, you should consider using Jakarta commons HttpClient.
I also remember reading last year about Java Restlet API: www.restlet .org
But I have not used them.


wonton927 <wonton927@xxxxxxxxx> wrote:
Has anybody implemented a client to talk to RESTful service with HTTP digest authentication or can somebody point me to the right place for this like examples etc.
 
Thanks!
 
Ling
 

Yahoo! oneSearch: Finally, mobile search that gives answers , not web links.


Check out the hottest 2008 models today at Yahoo! Autos.


Catch up on fall's hot new shows on Yahoo! TV. Watch previews, get listings, and more!


 


Check out the hottest 2008 models today at Yahoo! Autos.



--
Ed
<Prev in Thread] Current Thread [Next in Thread>