hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pill, Juergen" <Juergen.P...@softwareag.com>
Subject RE: Slide Client API uses current Http-Commons API
Date Tue, 17 Dec 2002 12:23:29 GMT
Hello,

There is a disadvantage with the proposed solution. The method
httpMethodBase.execute which calls Authenticator.authenticate has access to
the httpConnection object only, but not to the HttpClient object. How would
the httpClient pass a parameter to the httpConnection? Should the
httpConnection be enriched with an additional Boolean?

Best regards,

Juergen



 -----Original Message-----
From: 	Pill, Juergen [mailto:Juergen.Pill@softwareag.com] 
Sent:	Tuesday, December 17, 2002 10.42 AM
To:	'Commons HttpClient Project'
Cc:	'Slide Developers Mailing List'
Subject:	RE: Slide Client API uses current Http-Commons API

Hello,

If there is interest, I can supply a patch to do it on a programmatic way.
The Slide test suite currently uses a HttpSession for each method call, in
this scenario the performance penalty is pretty big.

Doing it the programmatic way:


1) The HttpClient has a private field "preEmptiveAuthorisation" with public
getter and setter.
2) If preEmptiveAuthorisation was set either to true or false, the system
property httpclient.authentication.preemptive is ignored, but
preEmptiveAuthorisation is used.
3) If preEmptiveAuthorisation was not set, the old mechanism still applies.
[Do we still need the property mechanism in this case?]

Best regards,

Juergen



 -----Original Message-----
From: 	Jeffrey Dever [mailto:jsdever@sympatico.ca] 
Sent:	Monday, December 16, 2002 23.37 PM
To:	Commons HttpClient Project
Cc:	'Slide Developers Mailing List'
Subject:	Re: Slide Client API uses current Http-Commons API

This is great!  Very happy to be working with you guys on this.

>3) Performance: currently 2 calls are sent in case of an authenticating
>server
>  
>
Just the first time the realm is hit.  It can be made to send the 
authentication header on the first request with the property:
httpclient.authentication.preemptive=true

Would consider a programatic way of doing this if desired.

-jsd



--
To unsubscribe, e-mail:
<mailto:commons-httpclient-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:commons-httpclient-dev-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:slide-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:slide-dev-help@jakarta.apache.org>

Mime
View raw message