How to get a URL "title" tag value?

Viewed 2398

I need to get title of page user entered. URL can be entered as "http://url.com" or as "url.com" Also, server can redirect straight request to it (checked on "google.com")

How should I correctly make a request and get a value between <title> and </title> tags of response?

1 Answers
Related