users
[Top] [All Lists]

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

To: esumerfd@xxxxxxxxxxxxxx, CinJug <users@xxxxxxxxxx>
Subject: Re: [cinjug-users] RESTful service HTTP digest authentication
From: wonton927 <wonton927@xxxxxxxxx>
Date: Tue, 25 Sep 2007 11:48:24 -0700 (PDT)
Delivered-to: mailing list users@xxxxxxxxxx
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=HfZpD+L22fkppZuCFnX2DrRiRRzle/HvA72+oNQ/K9zl6fTeGeJRQ8PgNe3de4ewGoaTdb/Dy/pUivwuVTIUiUhDRMWxPgLoi+pw+Tbus8Nl/424rbBMv1Xv3Yngps3hnhM1C2O+NOyJC7utigCM6XGqZJseie1Xp03CkiPXS50=;
In-reply-to: <6a216ba20709250718t440c8d43i735b31c93336db43@xxxxxxxxxxxxxx>
Mailing-list: contact users-help@xxxxxxxxxx; run by ezmlm
I am testing HttpClient right now and so far so good.  The only problem is HttpClient 3.1 will only run in java5/Tomcat 5, but I forced to run Java4/Tomcat4.1.  I might have to downgrade to HttpClient2.xx.

Ling

Edward Sumerfield <esumerfd@xxxxxxxxxxxxxx> wrote:
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


Pinpoint customers who are looking for what you sell.
<Prev in Thread] Current Thread [Next in Thread>