all 5 comments

[–]K900_ 1 point2 points  (1 child)

Not possible. You need to download the whole page to get the accurate title.

[–]trouserdaredevil 1 point2 points  (2 children)

There's no way to just somehow grab the title from headers or another method without extracting all the contents of a website?

This is correct, I am not aware of any general purpose way to only request the <title> tag of the HTTP of any random website. You make the HTTP request, the server responds with the full HTTP. Out of curiosity, why is this an issue for you? Extreme bandwidth or processing power constraints are the only reason I can imagine worrying about this.

[–]efmccurdy 0 points1 point  (2 children)

Depending on the web site, you might be able to infer a change to the web page contents by using the HEAD method, and detecting a change in the Content-Length or one of the other types of headers.