Disabled Android's automatic connection gzip compression that causes HEAD requests to fail occasionally.
Moved Connection.setDoInput from Request to Read.
Added cookie handling for Response class.
Added http HEAD / cookie usage example to sample app.