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
  • 6,088
  • 20
  • 73
  • 124

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,712
  • 3
  • 38
  • 63
2

you can use the HttpHead request

Blackbelt
  • 156,034
  • 29
  • 297
  • 305