On 2 July 2012 15:22, Adam Murdoch <[email protected]> wrote:

>
> On 28/06/2012, at 8:09 AM, Daz DeBoer wrote
>
> In the end I opted for 3) plus a simple solution borrowed from the Gradle
> Artifactory plugin: send pre-emptive Basic Auth for all requests but handle
> Digest Auth properly when it is requested. This required an upgrade to
> HttpClient 4.2, and means:
> * No GET/HEAD requests contain pre-emptive authentication headers
> * Initial PUT/POST requests will contain  Basic Auth headers.
>     * If the server requires Basic Auth, then this request will succeed
>     * If the server requires Digest Auth, then this request will fail with
> a 401, and we will resend the request with Digest Auth headers
>
>
> Does this mean we will send the first artefact twice, when you're using
> digest authentication?
>

Yes it does.
-- 
Darrell (Daz) DeBoer
Principal Engineer, Gradleware
http://www.gradleware.com

Reply via email to