Cannot download flac file with gradle - Invalid cookie header

Hi,

We are using Gradle 2.13 in our project to download flac files from our Github repository. But it is failing with following error:

gradlew processDataResources
:processDataResources
Invalid cookie header: "Set-Cookie: logged_in=no; domain=.github.com; path=/; expires=Sat, 06 Jun 2036 09:18:14 -0000; secure; HttpOnly". Invalid 'expires' attribute: Sat, 06 Jun 2036 09:18:14 -0000
Invalid cookie header: "Set-Cookie: logged_in=no; domain=.github.com; path=/; expires=Sat, 06 Jun 2036 09:18:15 -0000; secure; HttpOnly". Invalid 'expires' attribute: Sat, 06 Jun 2036 09:18:15 -0000

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all dependencies for configuration ':data'.
> Could not resolve de.dfki.mary:dfki-spike-data:0.9.
  Required by:
      :dfki-spike-data:0.9
   > Could not resolve de.dfki.mary:dfki-spike-data:0.9.
      > Could not get resource 'http://github.com/psibre/dfki-spike-data/releases/download/v0.9/dfki-spike-data.flac'.
         > Could not HEAD 'http://github.com/psibre/dfki-spike-data/releases/download/v0.9/dfki-spike-data.flac'. Received status code 403 from server: Forbidden

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

We investigated more and found that it was due to httpclient 4.4.1 bug which was fixed in version 4.5.

Although, we found a workaround for this issue, but it would be really nice if we are able to use standard method.

It would be commendable if you guys will consider updating httpclient library to latest version in upcoming release. It will allow us (and many others) to work without any hassle.

Gradle Version: 2.13
Operating System: Windows 10
Is this a regression? If yes, which version of Gradle do you know it last worked for? Before 2.11

Link to Gradle Build: https://github.com/psibre/dfki-spike-data/blob/9a945ef8b95d84dc70dc531c5a8be14654f7ebf0/build.gradle

Thank you!
Atta

Thanks. I raised GRADLE-3477.