1

My question is pretty similar to that except but I need only the header of the response in order to reduce battery consomation.

Community
  • 1
  • 1
Christophe Debove
  • 5,868
  • 19
  • 71
  • 121

2 Answers2

3

You need to make a HEAD request. In the http protocol this will return to you only the Header of the response.

http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.4

This can be done in android using HttpHead

Michael Allen
  • 5,653
  • 3
  • 36
  • 62
2

you can use the HttpHead request

Blackbelt
  • 152,872
  • 27
  • 286
  • 297