> -----Original Message----- > From: Oleg Kalnichevski [mailto:[email protected]] > Sent: Saturday, January 30, 2010 2:40 PM > To: HttpClient User Discussion > Subject: RE: Any up-to-date comparison of HttpClient vs. > HttpUrlConnection? > > On Fri, 2010-01-29 at 11:29 -0800, KARR, DAVID (ATTCINW) wrote: > > ... > > > > > > > http://java.sun.com/javase/7/docs/api/java/net/doc-files/net- > > > properties.html > > > > > > has a long list of properties. > > > > Can someone pick out features supported by those properties that are > > supported on a client basis with HttpClient (as opposed to setting > > system properties)? For instance, if I needed one connection to use > > NTLM auth, but only that connection, would this mean that all > > connections using HttpUrlConnection would be forced to use NTLM auth? > > Would HttpClient allow doing that on a client basis instead? > > > > HttpClient does not make use of system properties at all. Virtually > every aspect of the HTTP protocol can be overridden on a per request > basis (using HTTP parameters) or on a per client / thread basis (using > HTTP context).
I'm aware of that. I'm just looking for specific examples of this, where HUC implements it with a system property, and basically how HttpClient provides it on a request or client basis. Even more important, I'm trying to determine if there are features that HttpClient provides which just aren't practical at all with HUC. For instance, is it possible to get "preemptive authentication" with HUC? Is it possible to connect with SSL to a server using a self-signed certificate with HUC? I'm familiar with doing preemptive auth with HttpClient, but I only briefly read about the self-signed cert issue a long time ago.
