On Jul 1, 2010, at 12:48 PM, Bryant Luk wrote: > Are you using the plain client or with HttpClient?
Using Apache HC, as it appears that the plain client has trouble following redirects (even when configured to do so). > The plain Wink client uses the JDK HttpUrlConnection and should be > thread safe. Depending how you use HttpClient, it can vary. I'm configuring HC w/a ThreadSafeClientConnManager so its probably okay. Just was curious if you guys knew of anything to watch out for... I'm too lazy to dig through the client code ATM. BTW... has anyone built support for using the Jetty and/or Ning async client to handle the underlying HTTP bits for RestClient? I ask, because ATM due to the need for some async'y bits I am using cometd.org's BayeuxClient along with a Jetty async client along with an HC client to talk to the server. Would be nice to be able to use the same underlying HTTP client for bayeux and rest if possible. I took a brief look at the HC client impl, but I am not sure what its doing with all those output stream adapters and other bits. --jason
