Android’s HttpURLConnection throws EOFException on HEAD requests
Turned out this is a known bug in Android’s class implementation. Calling Connection.setRequestProperty( “Accept-Encoding”, “” ); before connecting can be used as workaround. https://code.google.com/p/android/issues/detail?id=24672