Is there a way to request only the head portion of an HTML page without needing to download the complete webpage? I am only interested meta tags like description, keywords and title (tag).
To generalize are there any HTTP methods that I could use to only request specific tags from a server without needing to download the whole webpage ?
Please let me know.
The things you're looking for are defined at the HTML level, a couple of layers above the HTTP layer. So no, there's no foolproof way to only request certain tags from an HTML page.
Given those tags are bound to be present in the <head>
section of the page, you can stop reading the response after you encountered the </head>
tag though - if the HTML is well-formed.